Class DwgLayer
- java.lang.Object
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
-
- org.hortonmachine.gears.io.dxfdwg.libs.dwg.objects.DwgLayer
-
public class DwgLayer extends DwgObject
The DwgLayer class represents a DWG Layer- Author:
- jmorell
-
-
Field Summary
-
Fields inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
extendedData, graphicData, graphicsFlag, handle, layerHandle, layerHandleCode, linetypeFlags, mode, noLinks, numReactors, plotstyleFlags, sizeInBits, subEntityHandle, type, version, xDicObjHandle
-
-
Constructor Summary
Constructors Constructor Description DwgLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColor()StringgetName()voidreadDwgLayerV15(int[] data, int offset)Read a Layer in the DWG format Version 15voidsetColor(int color)voidsetName(String name)-
Methods inherited from class org.hortonmachine.gears.io.dxfdwg.libs.dwg.DwgObject
getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle
-
-
-
-
Method Detail
-
readDwgLayerV15
public void readDwgLayerV15(int[] data, int offset) throws ExceptionRead a Layer in the DWG format Version 15- Parameters:
data- Array of unsigned bytes obtained from the DWG binary fileoffset- The current bit offset where the value begins- Throws:
Exception- If an unexpected bit value is found in the DWG file. Occurs when we are looking for LwPolylines.
-
setColor
public void setColor(int color)
-
getName
public String getName()
- Returns:
- Returns the name.
-
setName
public void setName(String name)
- Parameters:
name- The name to set.
-
-