Package net.atthegate.server.service.pdf
Class Paragraph
java.lang.Object
net.atthegate.server.service.pdf.Paragraph
Used to create paragraph objects.
See the TextColumn class for more information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a text line to this paragraph.void
Removes the last text line added to this paragraph.setAlignment
(int alignment) Sets the alignment of the text in this paragraph.
-
Field Details
-
list
-
alignment
protected int alignment
-
-
Constructor Details
-
Paragraph
public Paragraph()Constructor for creating paragraph objects. -
Paragraph
-
-
Method Details
-
add
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
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.
-