org.kabeja.dxf
Class DXFArc

java.lang.Object
  extended by org.kabeja.dxf.DXFEntity
      extended by org.kabeja.dxf.DXFArc

public class DXFArc
extends DXFEntity

Author:
Field Summary
 
Fields inherited from class org.kabeja.dxf.DXFEntity
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile
 
Constructor Summary
DXFArc()
           
 
Method Summary
 Bounds getBounds()
           
 Point getCenterPoint()
           
 double getChordLength()
           
 double getEndAngle()
           
 Point getEndPoint()
          Calculate the end point of the arc (defined by the end parameter)
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 Point getPointAt(double angle)
          Calculate a point of the arc
 double getRadius()
           
 double getStartAngle()
           
 Point getStartPoint()
          Calculate the start point of the arc (defined by the start parameter)
 double getTotalAngle()
           
 java.lang.String getType()
           
 boolean isCounterClockwise()
           
 void setCenterPoint(Point p)
           
 void setCounterClockwise(boolean counterclockwise)
           
 void setEndAngle(double end_angle)
           
 void setRadius(double radius)
           
 void setStartAngle(double start_angle)
           
 
Methods inherited from class org.kabeja.dxf.DXFEntity
getColor, getColorRGB, getDXFDocument, getExtrusion, getFlags, getID, getLayerName, getLineType, getLinetypeScaleFactor, getLineWeight, getThickness, getTransparency, isBlockEntity, isModelSpace, isOmitLineType, isVisibile, setBlockEntity, setColor, setColorRGB, setDXFDocument, setExtrusion, setExtrusionX, setExtrusionY, setExtrusionZ, setFlags, setID, setLayerName, setLineType, setLinetypeScaleFactor, setLineWeight, setModelSpace, setThickness, setTransparency, setVisibile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DXFArc

public DXFArc()
Method Detail

getEndAngle

public double getEndAngle()
Returns:
Returns the end_angle.

setEndAngle

public void setEndAngle(double end_angle)
Parameters:
end_angle - The end_angle to set.

getRadius

public double getRadius()
Returns:
Returns the radius.

setRadius

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

getStartAngle

public double getStartAngle()
Returns:
Returns the start_angle.

setStartAngle

public void setStartAngle(double start_angle)
Parameters:
start_angle - The start_angle to set.

getBounds

public Bounds getBounds()
Specified by:
getBounds in class DXFEntity

setCenterPoint

public void setCenterPoint(Point p)

getCenterPoint

public Point getCenterPoint()

getStartPoint

public Point getStartPoint()
Calculate the start point of the arc (defined by the start parameter)

Returns:
the start point

getEndPoint

public Point getEndPoint()
Calculate the end point of the arc (defined by the end parameter)

Returns:
the end point

getPointAt

public Point getPointAt(double angle)
Calculate a point of the arc

Parameters:
angle - in degree
Returns:
Point on the circle

getType

public java.lang.String getType()
Specified by:
getType in class DXFEntity

getLength

public double getLength()
Description copied from class: DXFEntity
Returns the length of the entity or 0 if the entity has no length

Specified by:
getLength in class DXFEntity
Returns:

getTotalAngle

public double getTotalAngle()

getChordLength

public double getChordLength()

isCounterClockwise

public boolean isCounterClockwise()

setCounterClockwise

public void setCounterClockwise(boolean counterclockwise)