| 1 |
|
| 2 |
package org.freehep.graphicsio.cgm; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
public class IntegerPrecision extends CGMTag { |
| 14 |
|
| 15 |
|
| 16 |
public IntegerPrecision() { |
| 17 |
super(1, 4, 1); |
| 18 |
} |
| 19 |
|
| 20 |
public void write(int tagID, CGMOutputStream cgm) throws IOException { |
| 21 |
|
| 22 |
cgm.setIntegerPrecision(16); |
| 23 |
cgm.writeInteger(16); |
| 24 |
} |
| 25 |
|
| 26 |
public void write(int tagID, CGMWriter cgm) throws IOException { |
| 27 |
cgm.setIntegerPrecision(16); |
| 28 |
cgm.print("INTEGERPREC "); |
| 29 |
cgm.writeInteger(Short.MIN_VALUE); |
| 30 |
cgm.print(", "); |
| 31 |
cgm.writeInteger(Short.MAX_VALUE); |
| 32 |
} |
| 33 |
} |