com.iver.cit.jdwglib.dwg.objects
Class DwgPolyline2D
java.lang.Object
com.iver.cit.jdwglib.dwg.DwgObject
com.iver.cit.jdwglib.dwg.objects.DwgPolyline2D
- public class DwgPolyline2D
- extends DwgObject
The DwgPolyline2D class represents a DWG Polyline2D
- Author:
- jmorell
Methods inherited from class com.iver.cit.jdwglib.dwg.DwgObject |
getColor, getExtendedData, getGraphicData, getHandle, getLayerHandle, getLayerHandleCode, getLinetypeFlags, getMode, getNumReactors, getPlotstyleFlags, getSizeInBits, getSubEntityHandle, getType, getVersion, getXDicObjHandle, isGraphicsFlag, isNoLinks, readObjectHeaderV15, readObjectTailV15, setColor, setExtendedData, setGraphicData, setGraphicsFlag, setHandle, setLayerHandle, setLayerHandleCode, setLinetypeFlags, setMode, setNoLinks, setNumReactors, setPlotstyleFlags, setSizeInBits, setSubEntityHandle, setType, setVersion, setXDicObjHandle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DwgPolyline2D
public DwgPolyline2D()
readDwgPolyline2DV15
public void readDwgPolyline2DV15(int[] data,
int offset)
throws java.lang.Exception
- Read a Polyline2D 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:
java.lang.Exception
- If an unexpected bit value is found in the DWG file. Occurs
when we are looking for LwPolylines.
getFirstVertexHandle
public int getFirstVertexHandle()
- Returns:
- Returns the firstVertexHandle.
setFirstVertexHandle
public void setFirstVertexHandle(int firstVertexHandle)
- Parameters:
firstVertexHandle
- The firstVertexHandle to set.
getFlags
public int getFlags()
- Returns:
- Returns the flags.
setFlags
public void setFlags(int flags)
- Parameters:
flags
- The flags to set.
getLastVertexHandle
public int getLastVertexHandle()
- Returns:
- Returns the lastVertexHandle.
setLastVertexHandle
public void setLastVertexHandle(int lastVertexHandle)
- Parameters:
lastVertexHandle
- The lastVertexHandle to set.
getPts
public java.awt.geom.Point2D[] getPts()
- Returns:
- Returns the pts.
setPts
public void setPts(java.awt.geom.Point2D[] pts)
- Parameters:
pts
- The pts to set.
getBulges
public double[] getBulges()
- Returns:
- Returns the bulges.
setBulges
public void setBulges(double[] bulges)
- Parameters:
bulges
- The bulges to set.
getInitWidth
public double getInitWidth()
- Returns:
- Returns the initWidth.
setInitWidth
public void setInitWidth(double initWidth)
- Parameters:
initWidth
- The initWidth to set.
getSeqendHandle
public int getSeqendHandle()
- Returns:
- Returns the seqendHandle.
setSeqendHandle
public void setSeqendHandle(int seqendHandle)
- Parameters:
seqendHandle
- The seqendHandle to set.
getThickness
public double getThickness()
- Returns:
- Returns the thickness.
setThickness
public void setThickness(double thickness)
- Parameters:
thickness
- The thickness to set.
getCurveType
public int getCurveType()
- Returns:
- Returns the curveType.
setCurveType
public void setCurveType(int curveType)
- Parameters:
curveType
- The curveType to set.
getElevation
public double getElevation()
- Returns:
- Returns the elevation.
setElevation
public void setElevation(double elevation)
- Parameters:
elevation
- The elevation to set.
getEndWidth
public double getEndWidth()
- Returns:
- Returns the endWidth.
setEndWidth
public void setEndWidth(double endWidth)
- Parameters:
endWidth
- The endWidth to set.
getExtrusion
public double[] getExtrusion()
- Returns:
- Returns the extrusion.
setExtrusion
public void setExtrusion(double[] extrusion)
- Parameters:
extrusion
- The extrusion to set.
clone
public java.lang.Object clone()