org.cresques.px.dxf
Class DxfFeatureMaker
java.lang.Object
org.cresques.px.dxf.DxfFeatureMaker
- All Implemented Interfaces:
- DxfFile.EntityFactory, Projected
- public class DxfFeatureMaker
- extends java.lang.Object
- implements DxfFile.EntityFactory, Projected
Implementación de la creación de features de un DXF2000.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DxfFeatureMaker
public DxfFeatureMaker(IProjection proj)
setAddingToBlock
public void setAddingToBlock(boolean a)
- Specified by:
setAddingToBlock
in interface DxfFile.EntityFactory
createLayer
public void createLayer(DxfGroupVector v)
throws java.lang.Exception
- Specified by:
createLayer
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createPolyline
public void createPolyline(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createPolyline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
endSeq
public void endSeq()
throws java.lang.Exception
- Specified by:
endSeq
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
addVertex
public void addVertex(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
addVertex
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createLwPolyline
public void createLwPolyline(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createLwPolyline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createLine
public void createLine(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createLine
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createText
public void createText(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createText
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createMText
public void createMText(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createMText
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createPoint
public void createPoint(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createPoint
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createCircle
public void createCircle(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createCircle
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createArc
public void createArc(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createArc
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createInsert
public void createInsert(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createInsert
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createSolid
public void createSolid(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createSolid
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createSpline
public void createSpline(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createSpline
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createAttdef
public void createAttdef(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createAttdef
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createAttrib
public void createAttrib(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createAttrib
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
createBlock
public void createBlock(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
createBlock
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
endBlk
public void endBlk(DxfGroupVector grp)
throws java.lang.Exception
- Specified by:
endBlk
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
testBlocks
public void testBlocks()
- Specified by:
testBlocks
in interface DxfFile.EntityFactory
depureAttributes
public void depureAttributes()
- Quita los atributos repetidos.
- Specified by:
depureAttributes
in interface DxfFile.EntityFactory
getAttributes
public java.util.Vector getAttributes()
- Specified by:
getAttributes
in interface DxfFile.EntityFactory
getExtent
public Extent getExtent()
- Specified by:
getExtent
in interface DxfFile.EntityFactory
setProjection
public void setProjection(IProjection p)
reProject
public void reProject(ICoordTrans rp)
- Specified by:
reProject
in interface Projected
getProjection
public IProjection getProjection()
- Specified by:
getProjection
in interface Projected
getObjects
public IObjList getObjects()
- Specified by:
getObjects
in interface DxfFile.EntityFactory
draw
public void draw(java.awt.Graphics2D g,
ViewPortData vp)
createArc
public static java.util.Vector createArc(java.awt.geom.Point2D coord1,
java.awt.geom.Point2D coord2,
double bulge)
getBlkList
public java.util.Vector getBlkList()
- Specified by:
getBlkList
in interface DxfFile.EntityFactory
getDxfEntityList
public DxfEntityList getDxfEntityList()
getBlk
public DxfBlock getBlk()
createEllipse
public void createEllipse(DxfGroupVector v)
throws java.lang.Exception
- Specified by:
createEllipse
in interface DxfFile.EntityFactory
- Throws:
java.lang.Exception
isDxf3DFile
public boolean isDxf3DFile()
- Specified by:
isDxf3DFile
in interface DxfFile.EntityFactory
- Returns:
- Returns the dxf3DFile.
setDxf3DFile
public void setDxf3DFile(boolean dxf3DFile)
- Parameters:
dxf3DFile
- The dxf3DFile to set.