Class TextBlockProperties.Builder

  • Enclosing class:
    TextBlockProperties

    public static class TextBlockProperties.Builder
    extends Object
    Provides a builder for text block properties
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • textIndent

        public TextBlockProperties.Builder textIndent​(int textIndent)
        Set the text indent for the block, in characters. The text indent controls the indent of all text rows except the first one, see firstLineIndent(int). The text indent is applied to text directly within the block, but is not inherited to block children.
        Parameters:
        textIndent - the indent, in characters
        Returns:
        returns "this" object
      • firstLineIndent

        public TextBlockProperties.Builder firstLineIndent​(int firstLineIndent)
        Set the first line indent for the block, in characters. The first line indent controls the indent of the first text row in a block. The first line indent is applied to text directly within the block, but is not inherited to block children.
        Parameters:
        firstLineIndent - the indent, in characters.
        Returns:
        returns "this" object
      • rowSpacing

        public TextBlockProperties.Builder rowSpacing​(float value)
        Sets the row spacing for the block.
        Parameters:
        value - the row spacing
        Returns:
        returns this builder
      • identifier

        public TextBlockProperties.Builder identifier​(String identifier)
        Sets the identifier for the block.
        Parameters:
        identifier - the identifier
        Returns:
        returns this builder
      • build

        public TextBlockProperties build()
        Creates a new text block properties object
        Returns:
        returns a new instance