ru.novosoft.dc.rtf.dom
Class StyleSheet

java.lang.Object
  |
  +--ru.novosoft.dc.rtf.dom.StyleSheet

public class StyleSheet
extends java.lang.Object

Style sheet contains a hashtable of specified formatting styles.


Constructor Summary
StyleSheet(int initialCapacity)
          Construct an empty style sheet table of the specified initial capacity.
 
Method Summary
 void addStyle(java.lang.String key, FormattingStyle style)
          Add a new style to the style sheet and register it with the specified key.
 void exportTo(org.w3c.dom.Element elem)
          Export the contents of this object to the specified DOM element.
 int size()
          Return a number of styles in the style sheet table.
 FormattingStyle style(java.lang.String key)
          Return a style for the specified key or null if no style with this key specified.
 java.util.Enumeration styles()
          Return the enumeration of all styles in the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleSheet

public StyleSheet(int initialCapacity)
Construct an empty style sheet table of the specified initial capacity.
Method Detail

addStyle

public final void addStyle(java.lang.String key,
                           FormattingStyle style)
Add a new style to the style sheet and register it with the specified key.

style

public final FormattingStyle style(java.lang.String key)
Return a style for the specified key or null if no style with this key specified.

size

public final int size()
Return a number of styles in the style sheet table.

styles

public final java.util.Enumeration styles()
Return the enumeration of all styles in the table.

exportTo

public void exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element.