|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.ColorTable
RTF color table. Contains a table of colors and the boolean tag marking the case when 0th color is the "auto" color.
| Field Summary | |
static RTFColor |
black
Black color |
static RTFColor |
white
White color |
| Constructor Summary | |
ColorTable(int initialCapacity)
Construct an empty color table of the specified initial capacity. |
|
| Method Summary | |
void |
addColor(RTFColor color)
Add a new color to the end of the color table. |
RTFColor |
color(int index)
Return a color at the specified position of color table. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
boolean |
hasAutoColor()
Return true, if the color table has an auto color of 0th index. |
void |
setAutoColor(boolean value)
Set "auto" tag value. |
int |
size()
Return a number of colors in the color table. |
java.lang.String |
toString()
Return representation of the color table as ANSI string. |
void |
trimToSize()
Trim the color table to its size (remove unused entries). |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static final RTFColor black
public static final RTFColor white
| Constructor Detail |
public ColorTable(int initialCapacity)
false.| Method Detail |
public final void addColor(RTFColor color)
public final RTFColor color(int index)
public final void setAutoColor(boolean value)
public final boolean hasAutoColor()
public final int size()
public final void trimToSize()
public java.lang.String toString()
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||