svn-gvsig-desktop / tags / Root_CqCMSDvp / libraries / libCq CMS for java.old / src / org / cresques / px / dxf / DxfTableItem.java @ 1732
History | View | Annotate | Download (1.63 KB)
1 |
package org.cresques.px.dxf; |
---|---|
2 |
|
3 |
import org.cresques.io.DxfGroup; |
4 |
|
5 |
/** Classe repr?sentant une table fichier DXF. */
|
6 |
public class DxfTableItem { |
7 |
public final static DxfGroup ENDTAB = new DxfGroup(0, "ENDTAB"); |
8 |
public final static DxfGroup APPID = new DxfGroup(0, "APPID"); |
9 |
public final static DxfGroup DIMSTYLE = new DxfGroup(0, "DIMSTYLE"); |
10 |
public final static DxfGroup LAYER = new DxfGroup(0, "LAYER"); |
11 |
public final static DxfGroup LTYPE = new DxfGroup(0, "LTYPE"); |
12 |
public final static DxfGroup STYLE = new DxfGroup(0, "STYLE"); |
13 |
public final static DxfGroup UCS = new DxfGroup(0, "UCS"); |
14 |
public final static DxfGroup VIEW = new DxfGroup(0, "VIEW"); |
15 |
public final static DxfGroup VPORT = new DxfGroup(0, "VPORT"); |
16 |
|
17 |
private String name; |
18 |
int flags = 0; |
19 |
|
20 |
public DxfTableItem(String name, int flags) { |
21 |
this.name = name;
|
22 |
this.flags = flags;
|
23 |
} |
24 |
|
25 |
public String getName(){return name;} |
26 |
public void setName(String name) {this.name = name;} |
27 |
public int getFlags(){return flags;} |
28 |
public void setFlags(int flags) {this.flags = flags;} |
29 |
|
30 |
public boolean getFlag1(){return ((flags&1)==1);} |
31 |
public boolean getFlag2(){return ((flags&2)==2);} |
32 |
public boolean getFlag4(){return ((flags&4)==4);} |
33 |
public boolean getFlag8(){return ((flags&8)==8);} |
34 |
public boolean getFlag16(){return ((flags&16)==16);} |
35 |
public boolean getFlag32(){return ((flags&32)==32);} |
36 |
public boolean getFlag64(){return ((flags&64)==64);} |
37 |
public boolean getFlag128(){return ((flags&128)==128);} |
38 |
|
39 |
public String toDxfString() { |
40 |
return DxfGroup.toString(2, name) + DxfGroup.toString(70, flags); |
41 |
} |
42 |
|
43 |
} |