Fields inherited from class org.kabeja.dxf.DXFEntity |
block, color, colorRGB, doc, extrusion, flags, id, layerID, lineType, linetypeScaleFactor, lineWeight, modelSpace, thickness, transparency, visibile |
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 |
DXFArc
public DXFArc()
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)