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