Class DXFText

  • All Implemented Interfaces:
    DXFObject

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

      Constructors 
      Constructor Description
      DXFText​(java.lang.String text, RealPoint basePoint, double rotationAngle, double obliqueAngle, DXFStyle style, java.awt.Graphics2D graphics)
      Create a text object at the specified position.
      DXFText​(java.lang.String text, RealPoint basePoint, double rotationAngle, DXFStyle style, java.awt.Graphics2D graphics)
      Create a text object at the specified position.
      DXFText​(java.lang.String text, RealPoint basePoint, DXFStyle style, java.awt.Graphics2D graphics)
      Create a text object at the specified position.
    • Constructor Detail

      • DXFText

        public DXFText​(java.lang.String text,
                       RealPoint basePoint,
                       DXFStyle style,
                       java.awt.Graphics2D graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        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 rotationAngle,
                       DXFStyle style,
                       java.awt.Graphics2D graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        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 rotationAngle,
                       double obliqueAngle,
                       DXFStyle style,
                       java.awt.Graphics2D graphics)
        Create a text object at the specified position.
        Parameters:
        text - Text string
        basePoint - Location of the base point of the text
        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 DXFEntity