Debian Codegraph @

freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/MaximumVDCExtent.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 * MaximumVDCExtent TAG.
9 *
10 * @author Mark Donszelmann
11 * @author Charles Loomis
12 * @version $Id: freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/MaximumVDCExtent.java 278fac7cefaa 2005/12/05 04:00:43 duns $
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 }