Packages

 

com.aspose.cad.fileformats.dgn.dgnelements

Class DgnTextElement

    • Constructor Detail

      • DgnTextElement

        public DgnTextElement(byte[] rawData,
                              boolean is3DElementExpected)

        Initializes a new instance of the DgnTextElement class

        Parameters:
        rawData - raw data
        is3DElementExpected - is 3D
    • Method Detail

      • getFontId

        public int getFontId()

        Gets font id

        Returns:
        The font id
      • getJustification

        public int getJustification()

        Gets justification

        Returns:
        The justification
      • getLengthMultiplier

        public double getLengthMultiplier()

        Gets char width in master units

        Returns:
        The char width in master units
      • getHeightMultiplier

        public double getHeightMultiplier()

        Gets char height in master units

        Returns:
        The char height
      • getRotation

        public double getRotation()

        Gets counterclockwise rotation in degrees

        Returns:
        The counterclockwise rotation in degrees
      • getQuaternionRotations

        public int[] getQuaternionRotations()

        Gets counterclockwise quaternion rotations in degrees

        Returns:
        The counterclockwise quaternion rotations in degrees
      • getOrigin

        public DgnPoint getOrigin()

        Gets bottom left corner of text

        Returns:
        The bottom left corner of text
      • getText

        public String getText()

        Gets actual text

        Returns:
        The actual text
      • applyTransformation_internalized

        public void applyTransformation_internalized(double scale,
                                                     DgnPoint originPoint)

        Apply transformation to the element

        Overrides:
        applyTransformation_internalized in class DgnElement
        Parameters:
        scale - scale factor
        originPoint - point of origin
      • getTextSize

        public SizeF getTextSize()

        Gets text size in UOR

        Returns:
        The text size in UOR