|
|||||||||
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.style.RtfStylesheetList
public class RtfStylesheetList
The RtfStylesheetList stores the RtfParagraphStyles that are used in the document.
Field Summary | |
---|---|
private boolean |
defaultsLoaded
Whether the default settings have been loaded. |
private HashMap |
styleMap
The HashMap containing the RtfParagraphStyles. |
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 | |
---|---|
RtfStylesheetList(RtfDocument doc)
Constructs a new RtfStylesheetList for the RtfDocument. |
Method Summary | |
---|---|
RtfParagraphStyle |
getRtfParagraphStyle(String styleName)
Gets the RtfParagraphStyle with the given name. |
private void |
registerDefaultStyles()
Registers all default styles. |
void |
registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
Register a RtfParagraphStyle with this RtfStylesheetList. |
void |
writeContent(OutputStream out)
unused |
void |
writeDefinition(OutputStream result)
Writes the definition of the stylesheet list. |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
setInHeader, setInTable, setRtfDocument |
Field Detail |
---|
private HashMap styleMap
private boolean defaultsLoaded
Constructor Detail |
---|
public RtfStylesheetList(RtfDocument doc)
doc
- The RtfDocument this RtfStylesheetList belongs to.Method Detail |
---|
public void writeContent(OutputStream out) throws IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
out
- The OutputStream
to write the content to
IOException
public void registerParagraphStyle(RtfParagraphStyle rtfParagraphStyle)
rtfParagraphStyle
- The RtfParagraphStyle to add.private void registerDefaultStyles()
public RtfParagraphStyle getRtfParagraphStyle(String styleName)
styleName
- The name of the RtfParagraphStyle to get.
public void writeDefinition(OutputStream result) throws IOException
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition to
IOException
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |