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