Package com.jsevy.jdxf
Class DXFArc
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFGraphicalEntity
-
- com.jsevy.jdxf.DXFArc
-
- All Implemented Interfaces:
DXFObject
public class DXFArc extends DXFGraphicalEntity
Graphical entity representing a circular arc.- Author:
- jsevy
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFArc(RealPoint center, double radius, double startAngleRadians, double endAngleRadians, boolean isCounterclockwise, DXFGraphics graphics)
Create a circular arc from the specified parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDXFHatchInfo()
java.lang.String
toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the circular arc.-
Methods inherited from class com.jsevy.jdxf.DXFEntity
setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFArc
public DXFArc(RealPoint center, double radius, double startAngleRadians, double endAngleRadians, boolean isCounterclockwise, DXFGraphics graphics)
Create a circular arc from the specified parameters.- Parameters:
center
- Center of the circle, as a RealPointradius
- Radius of the circlestartAngleRadians
- Starting angle of the circle, in radians, counterclockwise from the positive x axisendAngleRadians
- Starting angle of the circle, in radians, counterclockwise from the positive x axisisCounterclockwise
- Indicate direction of arc, clockwise or counterclockwisegraphics
- The graphics object specifying parameters for the arc (color, thickness)
-
-
Method Detail
-
toDXFString
public java.lang.String toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the circular arc.- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFGraphicalEntity
-
getDXFHatchInfo
public java.lang.String getDXFHatchInfo()
- Overrides:
getDXFHatchInfo
in classDXFGraphicalEntity
-
-