Debian Codegraph @

freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/FillReferencePoint.java

raw symbols SCIP
1 // Copyright 2001, FreeHEP.
2 package org.freehep.graphicsio.cgm;
3
4 import java.awt.geom.Point2D;
5 import java.io.IOException;
6
7 /**
8 * FillReferencePoint TAG.
9 *
10 * @author Mark Donszelmann
11 * @author Charles Loomis
12 * @version $Id: freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/FillReferencePoint.java 278fac7cefaa 2005/12/05 04:00:43 duns $
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 }