|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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[] |
ALIGN_CENTER
Constant for center alignment |
static byte[] |
ALIGN_JUSTIFY
Constant for justified alignment |
static byte[] |
ALIGN_LEFT
Constant for left alignment |
static byte[] |
ALIGN_RIGHT
Constant for right alignment |
private int |
alignment
The alignment of this RtfParagraph |
static byte[] |
INDENT_LEFT
Constant for left indentation |
static byte[] |
INDENT_RIGHT
Constant for right indentation |
private int |
indentLeft
The left indentation of this RtfParagraph |
private int |
indentRight
The right indentation of this RtfParagraph |
static byte[] |
KEEP_TOGETHER
Constant for keeping the paragraph together on one page |
static byte[] |
KEEP_TOGETHER_WITH_NEXT
Constant for keeping the paragraph toghether with the next one on one page |
private boolean |
keepTogether
Whether this RtfParagraph must stay on one page. |
private boolean |
keepTogetherWithNext
Whether this RtfParagraph must stay on the same page as the next paragraph. |
static byte[] |
PARAGRAPH
Constant for the end of a paragraph |
private static byte[] |
SPACING_AFTER
Constant for the space after the paragraph. |
private static byte[] |
SPACING_BEFORE
Constant for the space before the paragraph. |
private int |
spacingAfter
The space after this paragraph. |
private int |
spacingBefore
The space before this paragraph. |
| Fields inherited from class com.lowagie.text.rtf.text.RtfPhrase |
|---|
chunks, IN_TABLE, LINE_SPACING, lineLeading, PARAGRAPH_DEFAULTS |
| 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 | |
|---|---|
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. |
| 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
public static final byte[] ALIGN_LEFT
public static final byte[] ALIGN_RIGHT
public static final byte[] ALIGN_CENTER
public static final byte[] ALIGN_JUSTIFY
public static final byte[] INDENT_LEFT
public static final byte[] INDENT_RIGHT
public static final byte[] KEEP_TOGETHER
public static final byte[] KEEP_TOGETHER_WITH_NEXT
private static final byte[] SPACING_BEFORE
private static final byte[] SPACING_AFTER
private int alignment
private int indentLeft
private int indentRight
private boolean keepTogether
private boolean keepTogetherWithNext
private int spacingBefore
private int spacingAfter
| Constructor Detail |
|---|
public RtfParagraph(RtfDocument doc,
Paragraph paragraph)
doc - The RtfDocument this RtfParagraph belongs toparagraph - The Paragraph that this RtfParagraph is based on| Method Detail |
|---|
public void setKeepTogetherWithNext(boolean keepTogetherWithNext)
keepTogetherWithNext - Whether this RtfParagraph must keep together with the next.public byte[] write()
write in interface RtfBasicElementwrite in class RtfPhrase
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||