Class DXFLine

  • All Implemented Interfaces:
    DXFObject

    public class DXFLine
    extends DXFEntity
    Class representing a line segment.
    Author:
    jsevy
    • Constructor Detail

      • DXFLine

        public DXFLine​(RealPoint start,
                       RealPoint end,
                       java.awt.Graphics2D graphics)
        Create a line segment between the specified endpoints.
        Parameters:
        start - One endpoint
        end - The other endpoint
        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 line segment.
        Specified by:
        toDXFString in interface DXFObject
        Overrides:
        toDXFString in class DXFEntity