Package com.jsevy.jdxf
Class DXFLWPolyline
- java.lang.Object
-
- com.jsevy.jdxf.DXFDatabaseObject
-
- com.jsevy.jdxf.DXFEntity
-
- com.jsevy.jdxf.DXFGraphicalEntity
-
- com.jsevy.jdxf.DXFLWPolyline
-
- All Implemented Interfaces:
DXFObject
public class DXFLWPolyline extends DXFGraphicalEntity
Class representing a set of line segments defining a (possibly closed) polygon.- Author:
- jsevy
-
-
Field Summary
-
Fields inherited from class com.jsevy.jdxf.DXFDatabaseObject
LINEWEIGHT_BYBLOCK, LINEWEIGHT_BYLAYER
-
-
Constructor Summary
Constructors Constructor Description DXFLWPolyline(int numVertices, java.util.Vector<RealPoint> vertices, boolean closed, DXFGraphics graphics)
Create a set of line segments that connects the specified points, including a segment from the last to the first if closed is indicated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toDXFString()
Implementation of DXFObject interface method; creates DXF text representing the polyline.-
Methods inherited from class com.jsevy.jdxf.DXFGraphicalEntity
getDXFHatchInfo
-
Methods inherited from class com.jsevy.jdxf.DXFEntity
setPrecisionDigits
-
Methods inherited from class com.jsevy.jdxf.DXFDatabaseObject
getDXFLineWeight, getHandle, getHandleCount
-
-
-
-
Constructor Detail
-
DXFLWPolyline
public DXFLWPolyline(int numVertices, java.util.Vector<RealPoint> vertices, boolean closed, DXFGraphics graphics)
Create a set of line segments that connects the specified points, including a segment from the last to the first if closed is indicated.- Parameters:
numVertices
- The number of vertices specified in the vertex listvertices
- The verticesclosed
- If true, adds a segment between the last and first pointsgraphics
- 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 polyline.- Specified by:
toDXFString
in interfaceDXFObject
- Overrides:
toDXFString
in classDXFGraphicalEntity
-
-