com.lowagie.text.rtf.text
public class RtfChunk extends RtfElement
Version: $Id: RtfChunk.java 2784 2007-05-24 15:43:40Z hallm $
Field Summary | |
---|---|
RtfColor | background
An optional background colour. |
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 |
static byte[] | HIGHLIGHT
Constant for background colour. |
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.
|
byte[] | write()
Writes the content of this RtfChunk. |
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.
Deprecated: replaced by writeContent
Writes the content of this RtfChunk. First the font information is written, then the content, and then more font informationReturns: A byte array with the content of this RtfChunk