public class RtfParagraph extends RtfPhrase
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
PARAGRAPH
Constant for the end of a paragraph
|
private RtfParagraphStyle |
paragraphStyle
An optional RtfParagraphStyle to use for styling.
|
chunks, IN_TABLE, LINE_SPACING, PARAGRAPH_DEFAULTSdocument, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfParagraph(RtfDocument doc,
Paragraph paragraph)
Constructs a RtfParagraph belonging to a RtfDocument based on a Paragraph.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndentLeft()
Gets the left indentation of this RtfParagraph.
|
int |
getIndentRight()
Gets the right indentation of this RtfParagraph.
|
void |
setIndentLeft(int indentLeft)
Sets the left indentation of this RtfParagraph.
|
void |
setIndentRight(int indentRight)
Sets the right indentation of this RtfParagraph.
|
void |
setKeepTogetherWithNext(boolean keepTogetherWithNext)
Set whether this RtfParagraph must stay on the same page as the next one.
|
byte[] |
write()
Writes the content of this RtfParagraph.
|
setInHeader, setInTable, setRtfDocumentintToByteArray, isInTablepublic static final byte[] PARAGRAPH
private RtfParagraphStyle paragraphStyle
public RtfParagraph(RtfDocument doc, Paragraph paragraph)
doc - The RtfDocument this RtfParagraph belongs toparagraph - The Paragraph that this RtfParagraph is based onpublic void setKeepTogetherWithNext(boolean keepTogetherWithNext)
keepTogetherWithNext - Whether this RtfParagraph must keep together with the next.public byte[] write()
write in interface RtfBasicElementwrite in class RtfPhrasepublic int getIndentLeft()
public void setIndentLeft(int indentLeft)
indentLeft - The left indentation to use.public int getIndentRight()
public void setIndentRight(int indentRight)
indentRight - The right indentation to use.