Class DXFLWPolyline

  • All Implemented Interfaces:
    DXFObject

    public class DXFLWPolyline
    extends DXFGraphicalEntity
    Class representing a set of line segments defining a (possibly closed) polygon.
    Author:
    jsevy
    • 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 list
        vertices - The vertices
        closed - If true, adds a segment between the last and first points
        graphics - 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 interface DXFObject
        Overrides:
        toDXFString in class DXFGraphicalEntity