public class RtfParagraph extends RtfPhrase
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
PARAGRAPH
Constant for the end of a paragraph
|
protected RtfParagraphStyle |
paragraphStyle
An optional RtfParagraphStyle to use for styling.
|
chunks, IN_TABLE, LINE_SPACING, PARAGRAPH_DEFAULTS, PLAINdocument, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfParagraph(RtfDocument doc,
com.lowagie.text.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.
|
void |
writeContent(OutputStream result)
Writes the content of this RtfParagraph.
|
setInHeader, setInTable, setRtfDocumentintToByteArray, isInTablepublic static final byte[] PARAGRAPH
protected RtfParagraphStyle paragraphStyle
public RtfParagraph(RtfDocument doc, com.lowagie.text.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 void writeContent(OutputStream result) throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfPhraseresult - The OutputStream to write the content toIOExceptionpublic 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.Copyright © 2017. All rights reserved.