com.iver.cit.jdwglib.dwg.objects
Class DwgLwPolyline

java.lang.Object
  extended bycom.iver.cit.jdwglib.dwg.DwgObject
      extended bycom.iver.cit.jdwglib.dwg.objects.DwgLwPolyline

public class DwgLwPolyline
extends DwgObject

The DwgLwPolyline class represents a DWG LwPolyline

Author:
jmorell

Constructor Summary
DwgLwPolyline()
           
 
Method Summary
 java.lang.Object clone()
           
 double[] getBulges()
           
 double getConstWidth()
           
 double getElevation()
           
 int getFlag()
           
 double[] getNormal()
           
 double getThickness()
           
 java.awt.geom.Point2D[] getVertices()
           
 double[][] getWidths()
           
 void readDwgLwPolylineV15(int[] data, int offset)
          Read a LwPolyline in the DWG format Version 15
 void setBulges(double[] bulges)
           
 void setConstWidth(double constWidth)
           
 void setElevation(double elevation)
           
 void setFlag(int flag)
           
 void setNormal(double[] normal)
           
 void setThickness(double thickness)
           
 void setVertices(java.awt.geom.Point2D[] vertices)
           
 void setWidths(double[][] widths)
           
 
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
 

Constructor Detail

DwgLwPolyline

public DwgLwPolyline()
Method Detail

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 file
offset - 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.