Revision 9 trunk/libraries/libCq CMS for java.old/src/org/cresques/io/DxfFile.java
DxfFile.java | ||
---|---|---|
41 | 41 |
int count = 0; |
42 | 42 |
DxfGroup grp = null; |
43 | 43 |
|
44 |
DxfEntityMaker entityMaker = null;
|
|
44 |
EntityFactory entityMaker = null;
|
|
45 | 45 |
|
46 |
public DxfFile(Projection proj, String name, DxfEntityMaker maker) { |
|
46 |
public interface EntityFactory { |
|
47 |
public void createLayer(DxfGroupVector v) throws Exception ; |
|
48 |
public void createPolyline(DxfGroupVector v) throws Exception ; |
|
49 |
public void addVertex(DxfGroupVector v) throws Exception ; |
|
50 |
public void endSeq() throws Exception ; |
|
51 |
public void createLwPolyline(DxfGroupVector v) throws Exception ; |
|
52 |
public void createLine(DxfGroupVector v) throws Exception ; |
|
53 |
public void createText(DxfGroupVector v) throws Exception ; |
|
54 |
public void createSolid(DxfGroupVector v) throws Exception ; |
|
55 |
public void reProject(ReProjection rp); |
|
56 |
}; |
|
57 |
|
|
58 |
public DxfFile(Projection proj, String name, EntityFactory maker) { |
|
47 | 59 |
super(proj); |
48 | 60 |
this.name = name; |
49 | 61 |
entityMaker = maker; |
Also available in: Unified diff