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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default value for all indents, meaning there is no indent.
    static final double
    Constant for line spacing, meaning there is no relative value for the line spacing but that it is determined by an absolute value
    static final int
    Constant for line spacing, meaning there is no absolute value for the line spacing but that it is determined in relation to the default line height of each line in the paragraph.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the property 'first line indent'.
    Returns the formula whose return value determines the property 'first line indent'.
    int
    Returns the value of the property 'left indent'.
    Returns the formula whose return value determines the property 'left indent'.
    int
    Returns the absolute distance between baselines of the lines in this paragraph, measured in twips.
    Returns the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.
    double
    Returns the factor by which the default line spacing is to be multiplied for this paragraph.
    Returns the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.
    int
    Returns the value of the property 'rightIndent'.
    Returns the formula whose return value determines the property 'right indent'.
    void
    setFirstLineIndent(int firstLineIndent)
    Sets the value of the property 'first line indent'.
    void
    Sets the formula whose return value determines the property 'first line indent'.
    void
    setLeftIndent(int leftIndent)
    Sets the value of the property 'left indent'.
    void
    Sets the formula whose return value determines the property 'left indent'.
    void
    setLineSpacingAbsolute(int newValue)
    Sets the absolute distance between baselines of the lines in this paragraph, measured in twips.
    void
    Sets the formula whose return value determines the absolute distance between baselines of the lines in this paragraph, measured in twips.
    void
    setLineSpacingRelative(double newValue)
    Sets the factor by which the default line spacing is to be multiplied for this paragraph.
    void
    Sets the formula whose return value determines the factor by which the default line spacing is to be multiplied for this paragraph.
    void
    setRightIndent(int newValue)
    Sets the value of the property 'rightIndent'.
    void
    Sets the formula whose return value determines the property 'right indent'.
  • Field Details

  • Method Details

    • 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:
      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:
      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

      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:
      IllegalArgumentException - If a negative number is passed which is not LINE_SPACING_RELATIVE.
      Since:
      7.0
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
      IllegalArgumentException - If a negative number is passed which is not LINE_SPACING_ABSOLUTE
      Since:
      7.0
      See Also:
    • 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:
    • 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: