Interface ParagraphProperties

  • All Known Implementing Classes:
    FieldElement, Paragraph

    public interface ParagraphProperties
    Interface for elements that displays lines of text.

    This class is part of the RDC.
    • Method Detail

      • getFirstLineIndent

        int getFirstLineIndent()
        Returns the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).
        Returns:
        The value of the property 'first line indent'.
        Since:
        6.0
      • setFirstLineIndent

        void setFirstLineIndent​(int firstLineIndent)
        Sets the value of the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).
        Parameters:
        firstLineIndent - The new value of the property 'first line indent'. May be negative (which would cause the first line to be left of the left margin).
        Since:
        6.0
      • getFirstLineIndentFormula

        FormulaField getFirstLineIndentFormula()
        Returns the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).
        Returns:
        The formula whose return value determines the property 'first line indent'.
        Since:
        8.0
      • setFirstLineIndentFormula

        void setFirstLineIndentFormula​(FormulaField formula)
        Sets the formula whose return value determines the property 'first line indent'. This is the distance that the first line of the paragraph is indented from the left margin of the paragraph (in twips).
        Parameters:
        formula - The formula whose return value determines the property 'first line indent'.
        Since:
        8.0
      • getLeftIndent

        int getLeftIndent()
        Returns the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).
        Returns:
        The value of the property 'left indent'.
        Since:
        6.0
      • setLeftIndent

        void setLeftIndent​(int leftIndent)
        Sets the value of the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).
        Parameters:
        leftIndent - The new value of the property 'left indent'.
        Throws:
        java.lang.IllegalArgumentException - If a negative number is passed
        Since:
        6.0
      • getLeftIndentFormula

        FormulaField getLeftIndentFormula()
        Returns the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).
        Returns:
        The formula whose return value determines the property 'left indent'.
        Since:
        8.0
      • setLeftIndentFormula

        void setLeftIndentFormula​(FormulaField formula)
        Sets the formula whose return value determines the property 'left indent'. This is the distance that the the paragraph is indented from the left margin of the element (in twips).
        Parameters:
        formula - The formula whose return value determines the property 'left indent'.
        Since:
        8.0
      • getRightIndent

        int getRightIndent()
        Returns the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).
        Returns:
        The current value of the property 'rightIndent'. 
        Since:
        6.0
      • setRightIndent

        void setRightIndent​(int newValue)
        Sets the value of the property 'rightIndent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).
        Parameters:
        newValue - The new value of the property 'rightIndent'.
        Throws:
        java.lang.IllegalArgumentException - If a negative number is passed
        Since:
        6.0
      • getRightIndentFormula

        FormulaField getRightIndentFormula()
        Returns the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).
        Returns:
        The formula whose return value determines the property 'right indent'.
        Since:
        8.0
      • setRightIndentFormula

        void setRightIndentFormula​(FormulaField formula)
        Sets the formula whose return value determines the property 'right indent'. This is the distance that the the paragraph is indented from the right margin of the element (in twips).
        Parameters:
        formula - The formula whose return value determines the property 'right indent'.
        Since:
        8.0
      • getLineSpacingAbsolute

        int getLineSpacingAbsolute()
        Returns the absolute distance between baselines of the lines in this paragraph, measured in twips. If a relative factor has been set, this will return the constant LINE_SPACING_RELATIVE.
        Returns:
        Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE
        Since:
        7.0
        See Also:
        setLineSpacingAbsolute(int), LINE_SPACING_RELATIVE
      • setLineSpacingAbsolute

        void setLineSpacingAbsolute​(int newValue)
        Sets the absolute distance between baselines of the lines in this paragraph, measured in twips. It is also possible to set LINE_SPACING_RELATIVE, which restores the default setting.
        Parameters:
        newValue - Absolute distance between baselines in this paragraph, measured in twips, or LINE_SPACING_RELATIVE in order to restore the default setting.
        Throws:
        java.lang.IllegalArgumentException - If a negative number is passed which is not LINE_SPACING_RELATIVE.
        Since:
        7.0
        See Also:
        getLineSpacingAbsolute(), LINE_SPACING_RELATIVE
      • getLineSpacingAbsoluteFormula

        FormulaField getLineSpacingAbsoluteFormula()
        Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.
        Returns:
        Absolute distance between baselines in this paragraph, measured in twips
        Since:
        8.0
        See Also:
        setLineSpacingAbsolute(int)
      • setLineSpacingAbsoluteFormula

        void setLineSpacingAbsoluteFormula​(FormulaField formula)
        Sets the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.
        Parameters:
        formula - formula whose return value determines the absolute distance between baselines in this paragraph, measured in twips
        Since:
        8.0
        See Also:
        setLineSpacingAbsolute(int)
      • getLineSpacingRelative

        double getLineSpacingRelative()
        Returns the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. If an absolute value has been set, this will return LINE_SPACING_ABSOLUTE instead.
        Returns:
        Factor by which the default line spacing is to be multiplied for this paragraph, or LINE_SPACING_ABSOLUTE if an absolute line spacing distance has been set.
        Since:
        7.0
        See Also:
        LINE_SPACING_ABSOLUTE, getLineSpacingRelative()
      • setLineSpacingRelative

        void setLineSpacingRelative​(double newValue)
        Sets the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this number. Setting LINE_SPACING_ABSOLUTE will cause the value to be reset to its default, which is "1".
        Parameters:
        newValue - Factor by which the default line spacing is to be multiplied for this paragraph, or LINE_SPACING_ABSOLUTE if the default value is to be set (equivalent to "1")
        Throws:
        java.lang.IllegalArgumentException - If a negative number is passed which is not LINE_SPACING_ABSOLUTE
        Since:
        7.0
        See Also:
        LINE_SPACING_ABSOLUTE, getLineSpacingRelative()
      • getLineSpacingRelativeFormula

        FormulaField getLineSpacingRelativeFormula()
        Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.
        Returns:
        formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph
        Since:
        8.0
        See Also:
        getLineSpacingRelative()
      • setLineSpacingRelativeFormula

        void setLineSpacingRelativeFormula​(FormulaField formula)
        Sets the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph. The default line spacing is determined by font and font size, and is then multiplied by this formula's value.
        Parameters:
        formula - formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph
        Since:
        8.0
        See Also:
        setLineSpacingRelative(double)