java.lang.Objectcom.pdfjet.Paragraph
public class Paragraph
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 |
---|
public Paragraph()
public Paragraph(TextLine text)
Method Detail |
---|
public Paragraph add(TextLine text)
text
- the text line to add to this paragraph.
public void removeLastTextLine()
public Paragraph setAlignment(int alignment)
alignment
- the alignment code.
Supported values: Align.LEFT, Align.RIGHT, Align.CENTER and Align.JUSTIFY.