com.lowagie.text.rtf.text
public class RtfChunk extends RtfElement
Version: $Id: RtfChunk.java 3373 2008-05-12 16:21:24Z xlv $
| Field Summary | |
|---|---|
| RtfColor | background
An optional background color. |
| static byte[] | BACKGROUND_COLOR
Constant for background color. |
| String | content
The actual content of this RtfChunk |
| RtfFont | font
The font of this RtfChunk |
| static byte[] | FONT_END_SUPER_SUBSCRIPT
Constant for the end of sub / superscript flag |
| static byte[] | FONT_SUBSCRIPT
Constant for the subscript flag |
| static byte[] | FONT_SUPERSCRIPT
Constant for the superscript flag |
| boolean | softLineBreaks
Whether to use soft line breaks instead of hard ones. |
| float | superSubScript
The super / subscript of this RtfChunk |
| Constructor Summary | |
|---|---|
| RtfChunk(RtfDocument doc, Chunk chunk)
Constructs a RtfChunk based on the content of a Chunk
| |
| Method Summary | |
|---|---|
| boolean | getSoftLineBreaks()
Gets whether to use soft line breaks instead of default hard ones.
|
| void | setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfChunk belongs to.
|
| void | setSoftLineBreaks(boolean softLineBreaks)
Sets whether to use soft line breaks instead of default hard ones.
|
| void | writeContent(OutputStream result)
Writes the content of this RtfChunk. |
Parameters: doc The RtfDocument that this Chunk belongs to chunk The Chunk that this RtfChunk is based on
Returns: whether to use soft line breaks instead of default hard ones.
Parameters: doc The RtfDocument to use
Parameters: softLineBreaks whether to use soft line breaks instead of default hard ones.