com.lowagie.text.rtf.text
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, PLAIN
document, inHeader, inTable
CLOSE_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.
|
void |
writeContent(OutputStream result)
Writes the content of this RtfParagraph.
|
setInHeader, setInTable, setRtfDocument
intToByteArray, isInTable
public static final byte[] PARAGRAPH
protected 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 void writeContent(OutputStream result) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfPhrase
result
- The OutputStream
to write the content toIOException
public 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.