Class TextObjectRecord


  • public final class TextObjectRecord
    extends ContinuableRecord
    The TXO record (0x01B6) is used to define the properties of a text box. It is followed by two or more continue records unless there is no actual text. The first continue records contain the text data and the last continue record contains the formatting runs.
    • Field Detail

      • HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED

        public static final short HORIZONTAL_TEXT_ALIGNMENT_LEFT_ALIGNED
        See Also:
        Constant Field Values
      • HORIZONTAL_TEXT_ALIGNMENT_CENTERED

        public static final short HORIZONTAL_TEXT_ALIGNMENT_CENTERED
        See Also:
        Constant Field Values
      • HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED

        public static final short HORIZONTAL_TEXT_ALIGNMENT_RIGHT_ALIGNED
        See Also:
        Constant Field Values
      • HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED

        public static final short HORIZONTAL_TEXT_ALIGNMENT_JUSTIFIED
        See Also:
        Constant Field Values
      • VERTICAL_TEXT_ALIGNMENT_TOP

        public static final short VERTICAL_TEXT_ALIGNMENT_TOP
        See Also:
        Constant Field Values
      • VERTICAL_TEXT_ALIGNMENT_CENTER

        public static final short VERTICAL_TEXT_ALIGNMENT_CENTER
        See Also:
        Constant Field Values
      • VERTICAL_TEXT_ALIGNMENT_BOTTOM

        public static final short VERTICAL_TEXT_ALIGNMENT_BOTTOM
        See Also:
        Constant Field Values
      • VERTICAL_TEXT_ALIGNMENT_JUSTIFY

        public static final short VERTICAL_TEXT_ALIGNMENT_JUSTIFY
        See Also:
        Constant Field Values
      • TEXT_ORIENTATION_TOP_TO_BOTTOM

        public static final short TEXT_ORIENTATION_TOP_TO_BOTTOM
        See Also:
        Constant Field Values
      • TEXT_ORIENTATION_ROT_RIGHT

        public static final short TEXT_ORIENTATION_ROT_RIGHT
        See Also:
        Constant Field Values
      • TEXT_ORIENTATION_ROT_LEFT

        public static final short TEXT_ORIENTATION_ROT_LEFT
        See Also:
        Constant Field Values
    • Constructor Detail

      • TextObjectRecord

        public TextObjectRecord()
    • Method Detail

      • getSid

        public short getSid()
        Description copied from class: Record
        return the non static version of the id for this record.
        Specified by:
        getSid in class Record
        Returns:
        he id for this record
      • setHorizontalTextAlignment

        public void setHorizontalTextAlignment​(int value)
        Sets the Horizontal text alignment field value.
      • getHorizontalTextAlignment

        public int getHorizontalTextAlignment()
        Returns:
        the Horizontal text alignment field value.
      • setVerticalTextAlignment

        public void setVerticalTextAlignment​(int value)
        Sets the Vertical text alignment field value.
      • getVerticalTextAlignment

        public int getVerticalTextAlignment()
        Returns:
        the Vertical text alignment field value.
      • setTextLocked

        public void setTextLocked​(boolean value)
        Sets the text locked field value.
      • isTextLocked

        public boolean isTextLocked()
        Returns:
        the text locked field value.
      • getTextOrientation

        public int getTextOrientation()
        Get the text orientation field for the TextObjectBase record.
        Returns:
        One of TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFT
      • setTextOrientation

        public void setTextOrientation​(int textOrientation)
        Set the text orientation field for the TextObjectBase record.
        Parameters:
        textOrientation - One of TEXT_ORIENTATION_NONE TEXT_ORIENTATION_TOP_TO_BOTTOM TEXT_ORIENTATION_ROT_RIGHT TEXT_ORIENTATION_ROT_LEFT
      • getLinkRefPtg

        public Ptg getLinkRefPtg()
      • toString

        public java.lang.String toString()
        Description copied from class: Record
        get a string representation of the record (for biffview/debugging)
        Overrides:
        toString in class Record
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class Record