Class DXFText

  • All Implemented Interfaces:
    DXFObject

    public class DXFText
    extends DXFGraphicalEntity
    Class representing DXF text, located at a specified position and having specified style (font, size).
    Author:
    jsevy
    • Constructor Detail

      • DXFText

        public DXFText​(java.lang.String text,
                       RealPoint basePoint,
                       double capHeight,
                       DXFStyle style,
                       DXFGraphics graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        capHeight - The height of the font (generally the height of the capital H in the font)
        style - Text style (font)
        graphics - The graphics object specifying parameters for this entity (color, thickness)
      • DXFText

        public DXFText​(java.lang.String text,
                       RealPoint basePoint,
                       double capHeight,
                       double rotationAngle,
                       DXFStyle style,
                       DXFGraphics graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        capHeight - The height of the font (generally the height of the capital H in the font)
        rotationAngle - Angle by which the text baseline is rotated from the horizontal
        style - Text style (font)
        graphics - The graphics object specifying parameters for this entity (color, thickness)
      • DXFText

        public DXFText​(java.lang.String text,
                       RealPoint basePoint,
                       double capHeight,
                       double rotationAngle,
                       double obliqueAngle,
                       DXFStyle style,
                       DXFGraphics graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        capHeight - The height of the font (generally the height of the capital H in the font)
        rotationAngle - Angle by which the text baseline is rotated from the horizontal
        obliqueAngle - Angle by which the text is slanted from the baseline
        style - Text style (font)
        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 text object.
        Specified by:
        toDXFString in interface DXFObject
        Overrides:
        toDXFString in class DXFGraphicalEntity