Debian Codegraph @

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

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