|
|||||||||
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.RtfChunk
public class RtfChunk
The RtfChunk contains one piece of text. The smallest text element available in iText.
Field Summary |
---|
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 | |
---|---|
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(java.io.OutputStream result)
Writes the content of this RtfChunk. |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RtfChunk(RtfDocument doc, Chunk chunk)
doc
- The RtfDocument that this Chunk belongs tochunk
- The Chunk that this RtfChunk is based onMethod Detail |
---|
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content to
java.io.IOException
public void setRtfDocument(RtfDocument doc)
setRtfDocument
in interface RtfBasicElement
setRtfDocument
in class RtfElement
doc
- The RtfDocument to usepublic void setSoftLineBreaks(boolean softLineBreaks)
softLineBreaks
- whether to use soft line breaks instead of default hard ones.public boolean getSoftLineBreaks()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |