com.lowagie.text.rtf.style
public class RtfParagraphStyle extends RtfFont
Version: $Id: RtfParagraphStyle.java 3580 2008-08-06 15:52:00Z howard_s $
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 |
int | alignment
The alignment of the paragraph. |
String | basedOnName
The name of the RtfParagraphStyle this RtfParagraphStyle is based on. |
RtfParagraphStyle | baseStyle
The RtfParagraphStyle this RtfParagraphStyle is based on. |
int | firstLineIndent
The indentation for the first line |
static byte[] | FIRST_LINE_INDENT
Constant for the first line indentation |
int | indentLeft
The left indentation of the paragraph. |
int | indentRight
The right indentation of the paragraph. |
static byte[] | INDENT_LEFT
Constant for left indentation |
static byte[] | INDENT_RIGHT
Constant for right indentation |
boolean | keepTogether
Whether this RtfParagraph must stay on one page. |
boolean | keepTogetherWithNext
Whether this RtfParagraph must stay on the same page as the next paragraph. |
static byte[] | KEEP_TOGETHER
Constant for keeping the paragraph together on one page |
static byte[] | KEEP_TOGETHER_WITH_NEXT
Constant for keeping the paragraph together with the next one on one page |
int | lineLeading
The line leading of the paragraph. |
int | modified
Which properties have been modified when compared to the base style. |
static int | MODIFIED_ALIGNMENT
The alignment has been modified. |
static int | MODIFIED_FONT_COLOR
The font color has been modified. |
static int | MODIFIED_FONT_NAME
The font name has been modified. |
static int | MODIFIED_FONT_SIZE
The font style has been modified. |
static int | MODIFIED_FONT_STYLE
The font size has been modified. |
static int | MODIFIED_INDENT_LEFT
The left indentation has been modified. |
static int | MODIFIED_INDENT_RIGHT
The right indentation has been modified. |
static int | MODIFIED_KEEP_TOGETHER
The paragraph keep together setting has been modified. |
static int | MODIFIED_KEEP_TOGETHER_WITH_NEXT
The paragraph keep together with next setting has been modified. |
static int | MODIFIED_LINE_LEADING
The line leading has been modified. |
static int | MODIFIED_NONE
No modification has taken place when compared to the RtfParagraphStyle this RtfParagraphStyle
is based on. |
static int | MODIFIED_SPACING_AFTER
The spacing after a paragraph has been modified. |
static int | MODIFIED_SPACING_BEFORE
The spacing before a paragraph has been modified. |
int | spacingAfter
The spacing after a paragraph. |
int | spacingBefore
The spacing before a paragraph. |
String | styleName
The name of this RtfParagraphStyle. |
int | styleNumber
The number of this RtfParagraphStyle in the stylesheet list. |
static byte[] | SPACING_AFTER
Constant for the space after the paragraph. |
static byte[] | SPACING_BEFORE
Constant for the space before the paragraph. |
static RtfParagraphStyle | STYLE_HEADING_1
The style for level 1 headings. |
static RtfParagraphStyle | STYLE_HEADING_2
The style for level 2 headings. |
static RtfParagraphStyle | STYLE_HEADING_3
The style for level 3 headings. |
static RtfParagraphStyle | STYLE_NORMAL
The NORMAL/STANDARD style. |
Constructor Summary | |
---|---|
RtfParagraphStyle(String styleName, String fontName, int fontSize, int fontStyle, Color fontColor)
Constructs a new RtfParagraphStyle with the given attributes.
| |
RtfParagraphStyle(String styleName, String basedOnName)
Constructs a new RtfParagraphStyle that is based on an existing RtfParagraphStyle.
| |
RtfParagraphStyle(RtfDocument doc, RtfParagraphStyle style)
Constructs a RtfParagraphStyle from another RtfParagraphStyle.
|
Method Summary | |
---|---|
boolean | equals(Object o)
Tests whether two RtfParagraphStyles are equal. |
int | getAlignment()
Gets the alignment of this RtfParagraphStyle.
|
String | getBasedOnName()
Gets the name of the RtfParagraphStyle this RtfParagraphStyle is based on.
|
int | getFirstLineIndent()
Gets the first line indentation of this RtfParagraphStyle.
|
int | getIndentLeft()
Gets the left indentation of this RtfParagraphStyle.
|
int | getIndentRight()
Gets the right indentation of this RtfParagraphStyle.
|
boolean | getKeepTogether()
Gets whether the lines in the paragraph should be kept together in
this RtfParagraphStyle.
|
boolean | getKeepTogetherWithNext()
Gets whether the paragraph should be kept together with the next in
this RtfParagraphStyle.
|
int | getLineLeading()
Gets the line leading of this RtfParagraphStyle.
|
int | getSpacingAfter()
Gets the space after the paragraph of this RtfParagraphStyle.
|
int | getSpacingBefore()
Gets the space before the paragraph of this RtfParagraphStyle..
|
String | getStyleName()
Gets the name of this RtfParagraphStyle.
|
int | getStyleNumber()
Gets the number of this RtfParagraphStyle in the stylesheet list.
|
void | handleInheritance()
Handles the inheritance of paragraph style settings. |
int | hashCode()
Gets the hash code of this RtfParagraphStyle. |
void | setAlignment(int alignment)
Sets the alignment of this RtfParagraphStyle.
|
void | setColor(Color color)
Sets the color of this RtfParagraphStyle.
|
void | setFirstLineIndent(int firstLineIndent)
Sets the first line indentation of this RtfParagraphStyle. |
void | setFontName(String fontName)
Sets the font name of this RtfParagraphStyle.
|
void | setIndentLeft(int indentLeft)
Sets the left indentation of this RtfParagraphStyle.
|
void | setIndentRight(int indentRight)
Sets the right indentation of this RtfParagraphStyle.
|
void | setKeepTogether(boolean keepTogether)
Sets whether the lines in the paragraph should be kept together in
this RtfParagraphStyle.
|
void | setKeepTogetherWithNext(boolean keepTogetherWithNext)
Sets whether the paragraph should be kept together with the next in
this RtfParagraphStyle.
|
void | setLineLeading(int lineLeading)
Sets the line leading of this RtfParagraphStyle.
|
void | setSize(float fontSize)
Sets the font size of this RtfParagraphStyle.
|
void | setSpacingAfter(int spacingAfter)
Sets the space after the paragraph of this RtfParagraphStyle.
|
void | setSpacingBefore(int spacingBefore)
Sets the space before the paragraph of this RtfParagraphStyle.
|
void | setStyle(int fontStyle)
Sets the font style of this RtfParagraphStyle.
|
protected void | setStyleNumber(int styleNumber)
Sets the number of this RtfParagraphStyle in the stylesheet list.
|
void | writeBegin(OutputStream result)
Writes the start information of this RtfParagraphStyle.
|
void | writeContent(OutputStream out)
unused |
void | writeDefinition(OutputStream result)
Writes the definition of this RtfParagraphStyle for the stylesheet list. |
void | writeEnd(OutputStream result)
Unused
|
void | writeParagraphSettings(OutputStream result)
Writes the settings of this RtfParagraphStyle.
|
Parameters: styleName The name of this RtfParagraphStyle. fontName The name of the font to use for this RtfParagraphStyle. fontSize The size of the font to use for this RtfParagraphStyle. fontStyle The style of the font to use for this RtfParagraphStyle. fontColor The color of the font to use for this RtfParagraphStyle.
Parameters: styleName The name of this RtfParagraphStyle. basedOnName The name of the RtfParagraphStyle this RtfParagraphStyle is based on.
Parameters: doc The RtfDocument this RtfParagraphStyle belongs to. style The RtfParagraphStyle to copy settings from.
Returns: The alignment of this RtfParagraphStyle.
Returns: The name of the base RtfParagraphStyle.
Returns: The first line indentation of this RtfParagraphStyle.
Returns: The left indentation of this RtfParagraphStyle.
Returns: The right indentation of this RtfParagraphStyle.
Returns: Whether the lines in the paragraph should be kept together.
Returns: Whether the paragraph should be kept together with the next.
Returns: The line leading of this RtfParagraphStyle.
Returns: The space after the paragraph.
Returns: The space before the paragraph.
Returns: The name of this RtfParagraphStyle.
Returns: The number of this RtfParagraphStyle in the stylesheet list.
Parameters: alignment The alignment to use.
Parameters: color The Color to use.
Parameters: firstLineIndent The first line indentation to use.
Parameters: fontName The font name to use
Parameters: indentLeft The left indentation to use.
Parameters: indentRight The right indentation to use.
Parameters: keepTogether Whether the lines in the paragraph should be kept together.
Parameters: keepTogetherWithNext Whether the paragraph should be kept together with the next.
Parameters: lineLeading The line leading to use.
Parameters: fontSize The font size to use.
Parameters: spacingAfter The space after to use.
Parameters: spacingBefore The space before to use.
Parameters: fontStyle The font style to use.
Parameters: styleNumber The number to use.
Parameters: result The OutputStream
to write to.
Throws: IOException On i/o errors.
Parameters: result The OutputStream
that nothing is written to
Throws: IOException On i/o errors.
Parameters: result The OutputStream
to write to.
Throws: IOException On i/o errors.