com.iver.cit.jdwglib.dwg.objects
Class DwgLwPolyline
java.lang.Object
com.iver.cit.jdwglib.dwg.DwgObject
com.iver.cit.jdwglib.dwg.objects.DwgLwPolyline
- public class DwgLwPolyline
- extends DwgObject
The DwgLwPolyline class represents a DWG LwPolyline
- 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 |
DwgLwPolyline
public DwgLwPolyline()
readDwgLwPolylineV15
public void readDwgLwPolylineV15(int[] data,
int offset)
throws java.lang.Exception
- Read a LwPolyline 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.
getBulges
public double[] getBulges()
- Returns:
- Returns the bulges.
setBulges
public void setBulges(double[] bulges)
- Parameters:
bulges
- The bulges to set.
getFlag
public int getFlag()
- Returns:
- Returns the flag.
setFlag
public void setFlag(int flag)
- Parameters:
flag
- The flag to set.
getVertices
public java.awt.geom.Point2D[] getVertices()
- Returns:
- Returns the vertices.
setVertices
public void setVertices(java.awt.geom.Point2D[] vertices)
- Parameters:
vertices
- The vertices to set.
getElevation
public double getElevation()
- Returns:
- Returns the elevation.
setElevation
public void setElevation(double elevation)
- Parameters:
elevation
- The elevation to set.
getNormal
public double[] getNormal()
- Returns:
- Returns the normal.
clone
public java.lang.Object clone()
getConstWidth
public double getConstWidth()
- Returns:
- Returns the constWidth.
setConstWidth
public void setConstWidth(double constWidth)
- Parameters:
constWidth
- The constWidth to set.
getThickness
public double getThickness()
- Returns:
- Returns the thickness.
setThickness
public void setThickness(double thickness)
- Parameters:
thickness
- The thickness to set.
getWidths
public double[][] getWidths()
- Returns:
- Returns the widths.
setWidths
public void setWidths(double[][] widths)
- Parameters:
widths
- The widths to set.
setNormal
public void setNormal(double[] normal)
- Parameters:
normal
- The normal to set.