com.aspose.pdf.tagged.logicalstructure.elements

Class StructureTextState

  • java.lang.Object
    • com.aspose.pdf.tagged.logicalstructure.elements.StructureTextState


  • public class StructureTextState
    extends Object

    Represents text state settings for Text Structure Elements and TaggedContent (ITextElement, ITaggedContent)

    • Constructor Detail

      • StructureTextState

        public StructureTextState()
        Default constructor
    • Method Detail

      • getFont

        public final Font getFont()

        Gets or sets the font of text.

        Can be null. Use null to inherit Font property from parent structure element.

        Returns:
        Font instance
      • setFont

        public final void setFont(Font value)

        Gets or sets the font of text.

        Can be null. Use null to inherit Font property from parent structure element.

        Parameters:
        value - Font instance
      • getFontSize

        public final Float[] getFontSize()

        Gets or sets font size of the text.

        Can be null. Use null to inherit FontSize property from parent structure element.

        Returns:
        Float array
      • setFontSize

        public final void setFontSize(Float value)

        Gets or sets font size of the text.

        Can be null. Use null to inherit FontSize property from parent structure element.

        Parameters:
        value - Float value
      • getFontStyle

        public final Integer[] getFontStyle()

        Gets or sets font style of the text.

        Can be null. Use null to inherit FontStyle property from parent structure element.

        Returns:
        Integer array
      • setFontStyle

        public final void setFontStyle(Integer value)

        Gets or sets font style of the text.

        Can be null. Use null to inherit FontStyle property from parent structure element.

        Parameters:
        value - FontStyle element value
      • getForegroundColor

        public final Color getForegroundColor()

        Gets or sets foreground color of the text.

        Can be null. Use null to inherit ForegroundColor property from parent structure element.

        Returns:
        Color instance
      • setForegroundColor

        public final void setForegroundColor(Color value)

        Gets or sets foreground color of the text.

        Can be null. Use null to inherit ForegroundColor property from parent structure element.

        Parameters:
        value - Color instance
      • getBackgroundColor

        public final Color getBackgroundColor()

        Gets or sets background color of the text.

        Can be null. Use null to inherit BackgroundColor property from parent structure element.

        Returns:
        Color instance
      • setBackgroundColor

        public final void setBackgroundColor(Color value)

        Gets or sets background color of the text.

        Can be null. Use null to inherit BackgroundColor property from parent structure element.

        Parameters:
        value - Color instance
      • getUnderline

        public final Boolean[] getUnderline()

        Gets or sets underline for the text.

        Can be null. Use null to inherit Underline property from parent structure element.

        Returns:
        Boolean array
      • setUnderline

        public final void setUnderline(Boolean value)

        Gets or sets underline for the text.

        Can be null. Use null to inherit Underline property from parent structure element.

        Parameters:
        value - Boolean value
      • getStrikeOut

        public final Boolean[] getStrikeOut()

        Gets or sets strikeout for the text.

        Can be null. Use null to inherit StrikeOut property from parent structure element.

        Returns:
        Boolean array
      • setStrikeOut

        public final void setStrikeOut(Boolean value)

        Gets or sets strikeout for the text.

        Can be null. Use null to inherit StrikeOut property from parent structure element.

        Parameters:
        value - Boolean value
      • getSuperscript

        public final Boolean[] getSuperscript()

        Gets or sets superscript of the text.

        Can be null. Use null to inherit Superscript property from parent structure element.

        Returns:
        Boolean array
      • setSuperscript

        public final void setSuperscript(Boolean value)

        Gets or sets superscript of the text.

        Can be null. Use null to inherit Superscript property from parent structure element.

        Parameters:
        value - Boolean value
      • getSubscript

        public final Boolean[] getSubscript()

        Gets or sets subscript of the text.

        Can be null. Use null to inherit Subscript property from parent structure element.

        Returns:
        Boolean array
      • setSubscript

        public final void setSubscript(Boolean value)

        Gets or sets subscript of the text.

        Can be null. Use null to inherit Subscript property from parent structure element.

        Parameters:
        value - Boolean value
      • getHorizontalScaling

        public final Float[] getHorizontalScaling()

        Gets or sets horizontal scaling of the text.

        Can be null. Use null to inherit HorizontalScaling property from parent structure element.

        Returns:
        Float array
      • setHorizontalScaling

        public final void setHorizontalScaling(Float value)

        Gets or sets horizontal scaling of the text.

        Can be null. Use null to inherit HorizontalScaling property from parent structure element.

        Parameters:
        value - Float value
      • getLineSpacing

        public final Float[] getLineSpacing()

        Gets or sets line spacing of the text.

        Can be null. Use null to inherit LineSpacing property from parent structure element.

        Returns:
        Float array
      • setLineSpacing

        public final void setLineSpacing(Float value)

        Gets or sets line spacing of the text.

        Can be null. Use null to inherit LineSpacing property from parent structure element.

        Parameters:
        value - Float value
      • getCharacterSpacing

        public final Float[] getCharacterSpacing()

        Gets or sets character spacing of the text.

        Can be null. Use null to inherit CharacterSpacing property from parent structure element.

        Returns:
        Float array
      • setCharacterSpacing

        public final void setCharacterSpacing(Float value)

        Gets or sets character spacing of the text.

        Can be null. Use null to inherit CharacterSpacing property from parent structure element.

        Parameters:
        value - Float value
      • getWordSpacing

        public final Float[] getWordSpacing()

        Gets or sets word spacing of the text.

        Can be null. Use null to inherit WordSpacing property from parent structure element.

        Returns:
        Float array
      • setWordSpacing

        public final void setWordSpacing(Float value)

        Gets or sets word spacing of the text.

        Can be null. Use null to inherit WordSpacing property from parent structure element.

        Parameters:
        value - Float value
      • getMarginInfo

        public final MarginInfo getMarginInfo()

        Gets or sets margin for block structure element.

        Returns:
        MarginInfo instance
      • setMarginInfo

        public final void setMarginInfo(MarginInfo value)

        Gets or sets margin for block structure element.

        Parameters:
        value - MarginInfo instance
      • update

        public final void update(StructureTextState structureTextState)
        Update elements
        Parameters:
        structureTextState - StructureTextState instance
      • createTextState

        public final TextState createTextState()
        Create Text State
        Returns:
        TextState instance