Debian Codegraph @

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

raw symbols SCIP
1 // Copyright 2001, FreeHEP.
2 package org.freehep.graphicsio.cgm;
3
4 import java.io.IOException;
5
6 /**
7 * VDCIntegerPrecision TAG.
8 *
9 * @author Mark Donszelmann
10 * @author Charles Loomis
11 * @version $Id: freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/VDCIntegerPrecision.java 278fac7cefaa 2005/12/05 04:00:43 duns $
12 */
13 public class VDCIntegerPrecision extends CGMTag {
14
15 // FIXME: not complete
16 public VDCIntegerPrecision() {
17 super(3, 1, 1);
18 }
19
20 public void write(int tagID, CGMOutputStream cgm) throws IOException {
21 cgm.setVDCIntegerPrecision(16);
22 cgm.writeInteger(16);
23 }
24
25 public void write(int tagID, CGMWriter cgm) throws IOException {
26 cgm.print("VDCTYPE INTEGER;");
27 cgm.setVDCIntegerPrecision(16);
28 cgm.print("VDCINTEGERPREC");
29 cgm.writeInteger(Short.MIN_VALUE);
30 cgm.print(", ");
31 cgm.writeInteger(Short.MAX_VALUE);
32 }
33 }