com.pdfjet
Class Paragraph

java.lang.Object
  extended by com.pdfjet.Paragraph

public class Paragraph
extends java.lang.Object

Used to create paragraph objects. See the TextColumn class for more information.


Constructor Summary
Paragraph()
          Constructor for creating paragraph objects.
Paragraph(TextLine text)
           
 
Method Summary
 Paragraph add(TextLine text)
          Adds a text line to this paragraph.
 void removeLastTextLine()
          Removes the last text line added to this paragraph.
 Paragraph setAlignment(int alignment)
          Sets the alignment of the text in this paragraph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Paragraph

public Paragraph()
Constructor for creating paragraph objects.


Paragraph

public Paragraph(TextLine text)
Method Detail

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.