| 1 |
|
| 2 |
package org.freehep.graphicsio.cgm; |
| 3 |
|
| 4 |
import java.awt.geom.Point2D; |
| 5 |
import java.io.IOException; |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
public class MaximumVDCExtent extends CGMTag { |
| 15 |
|
| 16 |
private Point2D p0, p1; |
| 17 |
|
| 18 |
public MaximumVDCExtent() { |
| 19 |
super(1, 17, 2); |
| 20 |
} |
| 21 |
|
| 22 |
public MaximumVDCExtent(Point2D p0, Point2D p1) { |
| 23 |
this(); |
| 24 |
this.p0 = p0; |
| 25 |
this.p1 = p1; |
| 26 |
} |
| 27 |
|
| 28 |
public void write(int tagID, CGMOutputStream cgm) throws IOException { |
| 29 |
cgm.writePoint(p0); |
| 30 |
cgm.writePoint(p1); |
| 31 |
} |
| 32 |
|
| 33 |
public void write(int tagID, CGMWriter cgm) throws IOException { |
| 34 |
cgm.print("MAXVDCEXT "); |
| 35 |
cgm.writePoint(p0); |
| 36 |
cgm.print(", "); |
| 37 |
cgm.writePoint(p1); |
| 38 |
} |
| 39 |
} |