org.kabeja.dxf
Class DXFEllipse

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

public class DXFEllipse
extends DXFEntity

Author:
Field Summary
static double DEFAULT_END_PARAMETER
           
static double DEFAULT_START_PARAMETER
           
static int INTEGRATION_STEPS
           
 
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
DXFEllipse()
           
 
Method Summary
 Bounds getBounds()
           
 Point getCenterPoint()
           
 double getEndParameter()
           
 double getHalfMajorAxisLength()
           
 double getLength()
          Returns the length of the entity or 0 if the entity has no length
 Point getLocalEndPoint()
           
 Point getLocalPointAt(double para)
           
 Point getLocalStartPoint()
           
 Vector getMajorAxisDirection()
           
 Point getPointAt(double para)
          Calculate a Point in world coordinates for the given parameter on the ellipse.
 double getRatio()
           
 double getRotationAngle()
           
 double getStartParameter()
           
 java.lang.String getType()
           
 boolean isCounterClockwise()
           
 void setCenterPoint(Point center)
           
 void setCounterClockwise(boolean counterclockwise)
           
 void setEndParameter(double endParameter)
           
 void setMajorAxisDirection(Vector d)
           
 void setRatio(double ratio)
           
 void setStartParameter(double startParameter)
           
 
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
 

Field Detail

DEFAULT_END_PARAMETER

public static final double DEFAULT_END_PARAMETER
See Also:
Constant Field Values

DEFAULT_START_PARAMETER

public static final double DEFAULT_START_PARAMETER
See Also:
Constant Field Values

INTEGRATION_STEPS

public static final int INTEGRATION_STEPS
See Also:
Constant Field Values
Constructor Detail

DXFEllipse

public DXFEllipse()
Method Detail

getBounds

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

getCenterPoint

public Point getCenterPoint()

setCenterPoint

public void setCenterPoint(Point center)

getMajorAxisDirection

public Vector getMajorAxisDirection()

setMajorAxisDirection

public void setMajorAxisDirection(Vector d)

getEndParameter

public double getEndParameter()

setEndParameter

public void setEndParameter(double endParameter)

getRatio

public double getRatio()

setRatio

public void setRatio(double ratio)

getStartParameter

public double getStartParameter()

setStartParameter

public void setStartParameter(double startParameter)

getType

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

getHalfMajorAxisLength

public double getHalfMajorAxisLength()

getLocalPointAt

public Point getLocalPointAt(double para)

getPointAt

public Point getPointAt(double para)
Calculate a Point in world coordinates for the given parameter on the ellipse.

Parameters:
para - in double (between 0.0 and 2*PI)
Returns:
the point of the ellipse in world coordinates

getLocalStartPoint

public Point getLocalStartPoint()

getLocalEndPoint

public Point getLocalEndPoint()

getRotationAngle

public double getRotationAngle()

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:

isCounterClockwise

public boolean isCounterClockwise()

setCounterClockwise

public void setCounterClockwise(boolean counterclockwise)