|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.FontTable
RTF font table. Contains a table of fonts, index of default font, and the default encoding name.
| Constructor Summary | |
FontTable(int initialCapacity)
Construct a font table of specified initial capacity. |
|
| Method Summary | |
void |
addFont(RTFFont font)
Add an rtf font to the font table. |
void |
exportTo(org.w3c.dom.Element elem,
boolean usedOnly)
Export the contents of this object to the specified DOM element. |
RTFFont |
font(int index)
Return a font of required index or null if the required font index does not exist. |
java.util.Enumeration |
fonts()
Return the enumeration of all fonts in the table. |
java.lang.String |
getDefaultEncoding()
Return the default encoding name. |
int |
getDefaultFontIndex()
Return the index of the default font. |
void |
setDefaultEncoding(java.lang.String value)
Set the default encoding name. |
void |
setDefaultFontIndex(int value)
Set the index of the default font. |
java.lang.String |
toString()
Return representation of the font table as ANSI string. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public FontTable(int initialCapacity)
| Method Detail |
public final void addFont(RTFFont font)
public final RTFFont font(int index)
public final java.util.Enumeration fonts()
public final void setDefaultFontIndex(int value)
public final int getDefaultFontIndex()
public final void setDefaultEncoding(java.lang.String value)
public final java.lang.String getDefaultEncoding()
public java.lang.String toString()
public void exportTo(org.w3c.dom.Element elem,
boolean usedOnly)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||