|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.rtf.RtfElement com.lowagie.text.rtf.text.RtfPhrase com.lowagie.text.rtf.text.RtfParagraph
public class RtfParagraph
The RtfParagraph is an extension of the RtfPhrase that adds alignment and indentation properties. It wraps a Paragraph.
Field Summary | |
---|---|
static byte[] |
PARAGRAPH
Constant for the end of a paragraph |
protected RtfParagraphStyle |
paragraphStyle
An optional RtfParagraphStyle to use for styling. |
Fields inherited from class com.lowagie.text.rtf.text.RtfPhrase |
---|
chunks, IN_TABLE, LINE_SPACING, PARAGRAPH_DEFAULTS, PLAIN |
Fields inherited from class com.lowagie.text.rtf.RtfElement |
---|
document, inHeader, inTable |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
Constructor Summary | |
---|---|
RtfParagraph(RtfDocument doc,
Paragraph paragraph)
Constructs a RtfParagraph belonging to a RtfDocument based on a Paragraph. |
Method Summary | |
---|---|
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(java.io.OutputStream result)
Writes the content of this RtfParagraph. |
Methods inherited from class com.lowagie.text.rtf.text.RtfPhrase |
---|
setInHeader, setInTable, setRtfDocument |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] PARAGRAPH
protected RtfParagraphStyle paragraphStyle
Constructor Detail |
---|
public RtfParagraph(RtfDocument doc, Paragraph paragraph)
doc
- The RtfDocument this RtfParagraph belongs toparagraph
- The Paragraph that this RtfParagraph is based onMethod Detail |
---|
public void setKeepTogetherWithNext(boolean keepTogetherWithNext)
keepTogetherWithNext
- Whether this RtfParagraph must keep together with the next.public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfPhrase
result
- The OutputStream
to write the content to
java.io.IOException
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |