Debian Codegraph @

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

raw symbols SCIP
1 // Copyright 2001, FreeHEP.
2 package org.freehep.graphicsio.cgm;
3
4 import java.io.IOException;
5
6 /**
7 * LineJoin TAG.
8 *
9 * @author Mark Donszelmann
10 * @author Charles Loomis
11 * @version $Id: freehep-graphicsio-cgm/src/main/java/org/freehep/graphicsio/cgm/EdgeJoin.java 278fac7cefaa 2005/12/05 04:00:43 duns $
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 }