Package com.jsevy.jdxf
Class DXFLine
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFGraphicalEntity
-
- com.jsevy.jdxf.DXFLine
-
- All Implemented Interfaces:
DXFObject
public class DXFLine extends DXFGraphicalEntity
Class representing a line segment.- Author:
- jsevy
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFLine(RealPoint start, RealPoint end, DXFGraphics graphics)
Create a line segment between the specified endpoints.
-
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 line segment.-
Methods inherited from class com.jsevy.jdxf.DXFEntity
setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFLine
public DXFLine(RealPoint start, RealPoint end, DXFGraphics graphics)
Create a line segment between the specified endpoints.- Parameters:
start
- One endpointend
- The other endpointgraphics
- The graphics object specifying parameters for this entity (color, thickness)
-
-
Method Detail
-
toDXFString
public java.lang.String toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the line segment.- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFGraphicalEntity
-
getDXFHatchInfo
public java.lang.String getDXFHatchInfo()
- Overrides:
getDXFHatchInfo
in classDXFGraphicalEntity
-
-