public class DxfFeatureMaker extends Object implements DxfFile.EntityFactory, Projected
Constructor and Description |
---|
DxfFeatureMaker(IProjection proj)
Constructor de DxfFeatureMaker.
|
Modifier and Type | Method and Description |
---|---|
void |
addVertex(DxfGroupVector grp)
A�ade un v�rtice a la polil�nea que se est� creando
|
void |
createArc(DxfGroupVector grp)
Crea un nuevo arco partiendo de la informaci�n almacenada en el DXF
|
static Vector |
createArc(Point2D coord1,
Point2D coord2,
double bulge)
Invoca el m�todo de creaci�n de arcos para polil�neas con par�metros de
curvatura.
|
void |
createAttdef(DxfGroupVector grp)
Construye la definici�n de un nuevo atributo partiendo de la
informaci�n almacenada en el DXF
|
void |
createAttrib(DxfGroupVector grp)
Crea un nuevo atributo partiendo de la informaci�n almacenada en el
DXF
|
void |
createBlock(DxfGroupVector grp)
Crea un bloque
|
void |
createCircle(DxfGroupVector grp)
Crea un nuevo c�rculo partiendo de la informaci�n almacenada en
el DXF
|
void |
createEllipse(DxfGroupVector grp)
Crea una nueva elipse partiendo de la informaci�n almacenada en el
DXF
|
void |
createInsert(DxfGroupVector grp)
Crea un nuevo punto de inserci�n partiendo de la informaci�n
almacenada en el DXF
|
void |
createLayer(DxfGroupVector v)
Crea una nueva capa partiendo de la informaci�n almacenada en el
DXF
|
void |
createLine(DxfGroupVector grp)
Crea una nueva l�nea partiendo de la informaci�n almacenada en el
DXF
|
void |
createLwPolyline(DxfGroupVector grp)
Crea una nueva LwPolyline partiendo de la informaci�n almacenada en
el DXF
|
void |
createMText(DxfGroupVector grp)
Crea un nuevo MText partiendo de la informaci�n almacenada en el
DXF
|
void |
createPoint(DxfGroupVector grp)
Crea un nuevo punto partiendo de la informaci�n almacenada en el
DXF
|
void |
createPolyline(DxfGroupVector grp)
Crea una nueva polil�nea partiendo de la informaci�n almacenada
en el DXF
|
void |
createSolid(DxfGroupVector grp)
Crea un nuevo s�lido 2D partiendo de la informaci�n almacenada en
el DXF
|
void |
createSpline(DxfGroupVector grp)
Crea un nuevo Spline partiendo de la informaci�n almacenada en el
DXF
|
void |
createText(DxfGroupVector grp)
Crea un nuevo texto partiendo de la informaci�n almacenada en el
DXF
|
void |
depureAttributes()
Borra los atributos repetidos
|
void |
draw(Graphics2D g,
ViewPortData vp)
Permite dibujar las features creadas.
|
void |
endBlk(DxfGroupVector grp)
Fin de la definici�n de un bloqe
|
void |
endSeq()
Fin de secuencia
|
Vector |
getAttributes()
Permite la gesti�n de los atributos almacenados en unn DXF
|
DxfBlock |
getBlk() |
Vector |
getBlkList()
Devuelve la lista de bloques
|
DxfEntityList |
getDxfEntityList() |
Extent |
getExtent()
Devuelve el extent
|
IObjList |
getObjects()
Devuelve las features creadas.
|
IProjection |
getProjection()
Returns the current projection.
|
boolean |
isDxf3DFile()
Permite saber si se trata de un fichero DXF en 2D o en 3D
|
void |
reProject(ICoordTrans rp)
Changes projection of the graphical information of this object.
|
void |
setAddingToBlock(boolean a)
Permite saber si se est�n a�adiendo elementos a un bloque
|
void |
setDxf3DFile(boolean dxf3DFile) |
void |
setProjection(IProjection p)
Establece la proyecci�n cartogr�fica en la que se van a crear las features.
|
void |
testBlocks()
Gestiona los bloques que no se han tratado en la primera vuelta
|
public DxfFeatureMaker(IProjection proj)
proj,
- proyecci�n cartogr�fica en la que se encontrar�n las entidades
que creemos.public void setAddingToBlock(boolean a)
DxfFile.EntityFactory
setAddingToBlock
in interface DxfFile.EntityFactory
public void createLayer(DxfGroupVector v) throws Exception
DxfFile.EntityFactory
createLayer
in interface DxfFile.EntityFactory
Exception
public void createPolyline(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createPolyline
in interface DxfFile.EntityFactory
Exception
public void endSeq() throws Exception
DxfFile.EntityFactory
endSeq
in interface DxfFile.EntityFactory
Exception
public void addVertex(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
addVertex
in interface DxfFile.EntityFactory
Exception
public void createLwPolyline(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createLwPolyline
in interface DxfFile.EntityFactory
Exception
public void createLine(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createLine
in interface DxfFile.EntityFactory
Exception
public void createText(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createText
in interface DxfFile.EntityFactory
Exception
public void createMText(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createMText
in interface DxfFile.EntityFactory
Exception
public void createPoint(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createPoint
in interface DxfFile.EntityFactory
Exception
public void createCircle(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createCircle
in interface DxfFile.EntityFactory
Exception
public void createArc(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createArc
in interface DxfFile.EntityFactory
Exception
public void createInsert(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createInsert
in interface DxfFile.EntityFactory
Exception
public void createSolid(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createSolid
in interface DxfFile.EntityFactory
Exception
public void createSpline(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createSpline
in interface DxfFile.EntityFactory
Exception
public void createAttdef(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createAttdef
in interface DxfFile.EntityFactory
Exception
public void createAttrib(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createAttrib
in interface DxfFile.EntityFactory
Exception
public void createBlock(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createBlock
in interface DxfFile.EntityFactory
Exception
public void endBlk(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
endBlk
in interface DxfFile.EntityFactory
Exception
public void testBlocks()
DxfFile.EntityFactory
testBlocks
in interface DxfFile.EntityFactory
public void depureAttributes()
DxfFile.EntityFactory
depureAttributes
in interface DxfFile.EntityFactory
public Vector getAttributes()
DxfFile.EntityFactory
getAttributes
in interface DxfFile.EntityFactory
public Extent getExtent()
DxfFile.EntityFactory
getExtent
in interface DxfFile.EntityFactory
public void setProjection(IProjection p)
p,
- Proyecci�n cartogr�fica.public void reProject(ICoordTrans rp)
Projected
Changes projection of the graphical information of this object.
reProject
in interface Projected
rp
- transformation coordinates for obtaining the new projectionProjected.getProjection()
public IProjection getProjection()
Projected
Returns the current projection.
getProjection
in interface Projected
Projected.reProject(ICoordTrans)
public IObjList getObjects()
getObjects
in interface DxfFile.EntityFactory
public void draw(Graphics2D g, ViewPortData vp)
public static Vector createArc(Point2D coord1, Point2D coord2, double bulge)
coord1,
- punto inicial del arco.coord2,
- punto final del arco.bulge,
- par�metro de curvatura.public Vector getBlkList()
DxfFile.EntityFactory
getBlkList
in interface DxfFile.EntityFactory
public DxfEntityList getDxfEntityList()
public DxfBlock getBlk()
public void createEllipse(DxfGroupVector grp) throws Exception
DxfFile.EntityFactory
createEllipse
in interface DxfFile.EntityFactory
Exception
public boolean isDxf3DFile()
DxfFile.EntityFactory
isDxf3DFile
in interface DxfFile.EntityFactory
public void setDxf3DFile(boolean dxf3DFile)
dxf3DFile
- The dxf3DFile to set.