Package org.gvsig.dwg.lib
Class DwgObject
java.lang.Object
org.gvsig.dwg.lib.DwgObject
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
DwgArc,DwgAttdef,DwgAttrib,DwgBlock,DwgBlockControl,DwgBlockHeader,DwgCircle,DwgDictionary,DwgDictionaryVar,DwgDimOrd,DwgEllipse,DwgEndblk,DwgFace3D,DwgHatch,DwgIdBuffer,DwgImage,DwgImageDef,DwgImageDefReactor,DwgInsert,DwgLayer,DwgLayerControl,DwgLayerIndex,DwgLine,DwgLinearDimension,DwgLwPolyline,DwgMesh,DwgMeshPolyline,DwgMinsert,DwgMText,DwgOle2Frame,DwgPFace,DwgPFacePolyline,DwgPoint,DwgPolyline2D,DwgPolyline3D,DwgRasterVariables,DwgSeqend,DwgSolid,DwgSortEntStable,DwgSpatialFilter,DwgSpatialIndex,DwgSpline,DwgText,DwgVertex2D,DwgVertex3D,DwgVertexMesh,DwgVertexPFace,DwgVertexPFaceFace,DwgXRecord
The DwgObject class represents a DWG object
- Author:
- jmorell
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected intprotected Listprotected intprotected booleanprotected DwgHandleReferenceprotected intIndex of the dwg object in the object's map sectionprotected DwgHandleReferencelayer handle as an integerprotected intprotected intprotected booleanprotected intprotected intprotected DwgHandleReferenceprotected intprotected DwgHandleReferenceprotected intprotected Stringprotected booleanprotected DwgHandleReference -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclone()protected voidintbooleanintgetColor()intgetGeometrySubType(boolean is3DFile) intintgetIndex()intintgetMode()intintintintgetType()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidinserta()booleaninsertar()booleanbooleanbooleanbooleanintvoidsetAddress(int address) voidsetAvanzar(boolean avanza) voidsetColor(int color) voidsetExtendedData(List extData) voidsetGraphicData(int graphicData) voidsetGraphicsFlag(boolean graphicsFlag) voidsetHandle(DwgHandleReference handle) voidsetLayerHandle(DwgHandleReference layerHandle) voidsetLinetypeFlags(int linetypeFlags) voidSets the handle of the line type of this drawing entity.voidsetLyrByLineType(boolean lyrByLineType) voidsetMode(int mode) voidvoidsetNoLinks(boolean noLinks) voidsetNumReactors(int numReactors) voidsetPlotstyleFlags(int plotstyleFlags) voidvoidvoidsetSizeInBits(int sizeInBits) voidsetSubEntityHandle(DwgHandleReference subEntityHandle) voidsetType(int type) voidsetVersion(String version) voidsetXDicObjFlag(boolean xDicObjFlag) voidsetXDicObjHandle(DwgHandleReference dicObjHandle)
-
Field Details
-
type
protected int type -
handle
-
version
-
mode
protected int mode -
layerHandle
layer handle as an integer -
color
protected int color -
numReactors
protected int numReactors -
noLinks
protected boolean noLinks -
linetypeFlags
protected int linetypeFlags -
plotstyleFlags
protected int plotstyleFlags -
sizeInBits
protected int sizeInBits -
extendedData
-
graphicData
protected int graphicData -
address
protected int address -
plotStyleHandle
-
subEntityHandle
-
xDicObjHandle
-
graphicsFlag
protected boolean graphicsFlag -
xDicObjFlag
protected boolean xDicObjFlag -
avanzarFlag
protected boolean avanzarFlag -
index
protected int indexIndex of the dwg object in the object's map section
-
-
Constructor Details
-
DwgObject
public DwgObject(int index)
-
-
Method Details
-
inserta
public void inserta() -
insertar
public boolean insertar() -
setAddress
public void setAddress(int address) -
getAddress
public int getAddress() -
setNextHandle
-
setPreviousHandle
-
setAvanzar
public void setAvanzar(boolean avanza) -
getAvanzar
public boolean getAvanzar() -
addReactorHandle
-
getNextHandle
-
getPreviousHandle
-
getReactorsHandles
-
hasLayerHandle
public boolean hasLayerHandle() -
hasNextHandle
public boolean hasNextHandle() -
hasPreviousHandle
public boolean hasPreviousHandle() -
hasSubEntityHandle
public boolean hasSubEntityHandle() -
hasXDicObjHandle
public boolean hasXDicObjHandle() -
hasReactorsHandles
public boolean hasReactorsHandles() -
reactorsHandlesQuantity
public int reactorsHandlesQuantity() -
getIndex
public int getIndex() -
getSizeInBits
public int getSizeInBits()- Returns:
- Returns the sizeInBits.
-
setSizeInBits
public void setSizeInBits(int sizeInBits) - Parameters:
sizeInBits- The sizeInBits to set.
-
getExtendedData
- Returns:
- Returns the extendedData.
-
setExtendedData
- Parameters:
extData- The extendedData to set.
-
getGraphicData
public int getGraphicData()- Returns:
- Returns the graphicData.
-
setGraphicData
public void setGraphicData(int graphicData) - Parameters:
graphicData- The graphicData to set.
-
getVersion
- Returns:
- Returns the version.
-
setLinetypeFlags
public void setLinetypeFlags(int linetypeFlags) - Parameters:
linetypeFlags- The linetypeFlags to set.
-
setPlotstyleFlags
public void setPlotstyleFlags(int plotstyleFlags) - Parameters:
plotstyleFlags- The plotstyleFlags to set.
-
getSubEntityHandle
- Returns:
- Returns the subEntityHandle.
-
setSubEntityHandle
- Parameters:
subEntityHandle- The subEntityHandle to set.
-
getXDicObjHandle
- Returns:
- Returns the xDicObjHandle.
-
setXDicObjHandle
- Parameters:
dicObjHandle- The xDicObjHandle to set.
-
getColor
public int getColor()- Returns:
- Returns the color.
-
setColor
public void setColor(int color) - Parameters:
color- The color to set.
-
getHandle
- Returns:
- Returns the handle.
-
setHandle
- Parameters:
handle- The handle to set.
-
getLayerHandle
- Returns:
- Returns the layerHandle.
-
setLayerHandle
- Parameters:
layerHandle- The layerHandle to set.
-
getMode
public int getMode()- Returns:
- Returns the mode.
-
setMode
public void setMode(int mode) - Parameters:
mode- The mode to set.
-
isNoLinks
public boolean isNoLinks()- Returns:
- Returns the noLinks.
-
setNoLinks
public void setNoLinks(boolean noLinks) - Parameters:
noLinks- The noLinks to set.
-
getNumReactors
public int getNumReactors()- Returns:
- Returns the numReactors.
-
setNumReactors
public void setNumReactors(int numReactors) - Parameters:
numReactors- The numReactors to set.
-
getType
public int getType()- Returns:
- Returns the type.
-
setType
public void setType(int type) - Parameters:
type- The type to set.
-
getLinetypeFlags
public int getLinetypeFlags()- Returns:
- Returns the linetypeFlags.
-
getPlotstyleFlags
public int getPlotstyleFlags()- Returns:
- Returns the plotstyleFlags.
-
setVersion
- Parameters:
version- The version to set.
-
isGraphicsFlag
public boolean isGraphicsFlag()- Returns:
- Returns the graphicsFlag.
-
setGraphicsFlag
public void setGraphicsFlag(boolean graphicsFlag) - Parameters:
graphicsFlag- The graphicsFlag to set.
-
isXDicObjFlag
public boolean isXDicObjFlag()- Returns:
- Returns the xDicObjFlag.
-
setXDicObjFlag
public void setXDicObjFlag(boolean xDicObjFlag) - Parameters:
xDicObjFlag- The xDicObjFlag to set.
-
setLyrByLineType
public void setLyrByLineType(boolean lyrByLineType) -
isLyrByLineType
public boolean isLyrByLineType() -
setPlotStyleHandle
-
hasPlotStyleHandle
public boolean hasPlotStyleHandle() -
setLineTypeHandle
Sets the handle of the line type of this drawing entity. TODO Ver si conviene guardar tambien el handleCode de este handle- Parameters:
handle2-
-
getLineTypeHandle
-
hasLineTypeHandle
public boolean hasLineTypeHandle() -
clone
-
fill
-
getGeometrySubType
public int getGeometrySubType(boolean is3DFile)
-