Interface ParagraphPropertiesWriter

All Known Subinterfaces:
Writer
All Known Implementing Classes:
AbstractWriter, XMLDOMWriter

public interface ParagraphPropertiesWriter
A writer interface for setting paragraph properties.

This interface provides methods for setting various properties of a paragraph. These properties include alignment, indentation, spacing, borders, and background color.

See Also:
  • Method Details

    • setAlignment

      void setAlignment(Alignment value)
      Sets the alignment for the paragraph.

      The alignment can be one of the following values: ALIGN_LEFT - Aligns the paragraph to the left. ALIGN_CENTER - Centers the paragraph. ALIGN_RIGHT - Aligns the paragraph to the right. ALIGN_JUSTIFIED - Justifies the paragraph.

      Parameters:
      value - the Alignment value to set for the paragraph
    • setLeftIndent

      void setLeftIndent(int value)
      Set the left indent of the paragraph.
      Parameters:
      value - the value of the left indent
    • setRightIndent

      void setRightIndent(int value)
      Sets the right indent for the paragraph.

      The right indent specifies the amount of indentation from the right margin of the paragraph.

      Parameters:
      value - the value of the right indent for the paragraph
    • setFirstIndent

      void setFirstIndent(int value)
      Sets the first-line indentation of the paragraph.
      Parameters:
      value - the value of the first-line indentation
    • setRightToLeftPar

      void setRightToLeftPar(boolean value)
      Sets the right-to-left paragraph property.
      Parameters:
      value - the value of the right-to-left paragraph property
    • setParagraphInTable

      void setParagraphInTable(boolean value)
      Sets the flag indicating whether the paragraph is inside a table or not.
      Parameters:
      value - the flag value indicating whether the paragraph is inside a table
    • setSpaceBefore

      void setSpaceBefore(int value)
      Sets the space before the paragraph.
      Parameters:
      value - the value of the space before the paragraph
    • setSpaceAfter

      void setSpaceAfter(int value)
      Sets the space after the paragraph.
      Parameters:
      value - the value of the space after the paragraph
    • setParagraphBorder

      void setParagraphBorder(ParagraphProperties.Border value)
      Sets the border for the paragraph.

      The border can be one of the following values:

      • NONE - No border.
      • BOX - Border around the entire paragraph.
      Parameters:
      value - the Border value to set for the paragraph
    • setParagraphBackgroundColor

      void setParagraphBackgroundColor(String value)
      Sets the background color of the paragraph.

      This method sets the background color of the paragraph to the specified value. The value should be a valid hexadecimal color code representation.

      Parameters:
      value - the background color value to set for the paragraph