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