Class Paragraph

java.lang.Object
net.atthegate.server.service.pdf.Paragraph

public class Paragraph extends Object
Used to create paragraph objects. See the TextColumn class for more information.
  • Field Details

    • list

      protected List<TextLine> list
    • alignment

      protected int alignment
  • Constructor Details

    • Paragraph

      public Paragraph()
      Constructor for creating paragraph objects.
    • Paragraph

      public Paragraph(TextLine text)
  • Method Details

    • add

      public Paragraph add(TextLine text)
      Adds a text line to this paragraph.
      Parameters:
      text - the text line to add to this paragraph.
      Returns:
      this paragraph.
    • removeLastTextLine

      public void removeLastTextLine()
      Removes the last text line added to this paragraph.
    • setAlignment

      public Paragraph setAlignment(int alignment)
      Sets the alignment of the text in this paragraph.
      Parameters:
      alignment - the alignment code.
      Returns:
      this paragraph.
      Supported values: Align.LEFT, Align.RIGHT, Align.CENTER and Align.JUSTIFY.