コード例 #1
0
 public void write(int tagID, CGMWriter cgm) throws IOException {
   cgm.setEdgeWidthSpecificationMode(mode);
   cgm.print("EDGEWIDTHMODE ");
   switch (mode) {
     default:
     case ABSOLUTE:
       cgm.print("ABS");
       break;
     case SCALED:
       cgm.print("SCALED");
       break;
     case FRACTIONAL:
       cgm.print("FRACTIONAL");
       break;
     case MM:
       cgm.print("METRIC");
       break;
   }
 }
コード例 #2
0
 public void write(int tagID, CGMWriter cgm) throws IOException {
   cgm.print("RECT ");
   cgm.writePoint(new Point2D.Double(rectangle.getMinX(), rectangle.getMinY()));
   cgm.print(", ");
   cgm.writePoint(new Point2D.Double(rectangle.getMaxX(), rectangle.getMaxY()));
 }
コード例 #3
0
 public void write(int tagID, CGMWriter cgm) throws IOException {
   cgm.print("CONNEDGE");
 }
コード例 #4
0
 public void write(int tagID, CGMWriter cgm) throws IOException {
   cgm.outdent();
   cgm.print("ENDFIGURE");
 }
コード例 #5
0
 public void write(int tagID, CGMWriter cgm) throws IOException {
   cgm.print("ALTCHARSETINDEX ");
   cgm.writeInteger(index);
 }