| 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 FillReferencePoint extends CGMTag { |
| 15 |
|
| 16 |
private Point2D p; |
| 17 |
|
| 18 |
public FillReferencePoint() { |
| 19 |
super(5, 31, 1); |
| 20 |
} |
| 21 |
|
| 22 |
public FillReferencePoint(Point2D p) { |
| 23 |
this(); |
| 24 |
this.p = p; |
| 25 |
} |
| 26 |
|
| 27 |
public void write(int tagID, CGMOutputStream cgm) throws IOException { |
| 28 |
cgm.writePoint(p); |
| 29 |
} |
| 30 |
|
| 31 |
public void write(int tagID, CGMWriter cgm) throws IOException { |
| 32 |
cgm.print("FILLREFPT "); |
| 33 |
cgm.writePoint(p); |
| 34 |
} |
| 35 |
} |