public class RtfColorList extends RtfElement implements RtfExtendedElement
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
COLOR_TABLE
Constant for the beginning of the colour table
|
(package private) java.util.ArrayList |
colorList
ArrayList containing all colours of this RtfColorList
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfColorList(RtfDocument doc)
Constructs a new RtfColorList for the RtfDocument.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColorNumber(RtfColor color)
Returns the index of the given RtfColor in the colour list.
|
byte[] |
writeDefinition()
Write the definition part of the colour list.
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInHeader, setInTable, setRtfDocument, writeprivate static final byte[] COLOR_TABLE
java.util.ArrayList colorList
public RtfColorList(RtfDocument doc)
doc - The RtfDocument this RtfColorList belongs topublic int getColorNumber(RtfColor color)
color - The RtfColor for which to get the indexpublic byte[] writeDefinition()
writeDefinition in interface RtfExtendedElement