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

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

public class DwgCircle
extends DwgObject

The DwgCircle class represents a DWG Circle

Author:
jmorell

Constructor Summary
DwgCircle()
           
 
Method Summary
 java.lang.Object clone()
           
 double[] getCenter()
           
 double[] getExtrusion()
           
 double getRadius()
           
 double getThickness()
           
 void readDwgCircleV15(int[] data, int offset)
          Read a Circle in the DWG format Version 15
 void setCenter(double[] center)
           
 void setExtrusion(double[] extrusion)
           
 void setRadius(double radius)
           
 void setThickness(double thickness)
           
 
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

DwgCircle

public DwgCircle()
Method Detail

readDwgCircleV15

public void readDwgCircleV15(int[] data,
                             int offset)
                      throws java.lang.Exception
Read a Circle 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.

getCenter

public double[] getCenter()
Returns:
Returns the center.

setCenter

public void setCenter(double[] center)
Parameters:
center - The center to set.

getRadius

public double getRadius()
Returns:
Returns the radius.

setRadius

public void setRadius(double radius)
Parameters:
radius - The radius to set.

getExtrusion

public double[] getExtrusion()
Returns:
Returns the extrusion.

clone

public java.lang.Object clone()

getThickness

public double getThickness()
Returns:
Returns the thickness.

setThickness

public void setThickness(double thickness)
Parameters:
thickness - The thickness to set.

setExtrusion

public void setExtrusion(double[] extrusion)
Parameters:
extrusion - The extrusion to set.