|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.style.RtfColorList
public class RtfColorList
The RtfColorList stores all colours that appear in the document. Black and White are always added
| Field Summary | |
|---|---|
private static byte[] |
COLOR_TABLE
Constant for the beginning of the colour table |
(package private) ArrayList |
colorList
ArrayList containing all colours of this RtfColorList |
| 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 | |
|---|---|
RtfColorList(RtfDocument doc)
Constructs a new RtfColorList for the RtfDocument. |
|
| Method Summary | |
|---|---|
int |
getColorNumber(RtfColor color)
Returns the index of the given RtfColor in the colour list. |
byte[] |
write()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream), scheduled for removal at or after 2.1.0 |
void |
writeContent(OutputStream out)
unused |
byte[] |
writeDefinition()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeDefinition(OutputStream), scheduled for removal at or after 2.1.0 |
void |
writeDefinition(OutputStream result)
Write the definition part of the colour 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 static final byte[] COLOR_TABLE
ArrayList colorList
| Constructor Detail |
|---|
public RtfColorList(RtfDocument doc)
doc - The RtfDocument this RtfColorList belongs to| Method Detail |
|---|
public int getColorNumber(RtfColor color)
color - The RtfColor for which to get the index
public byte[] write()
writeContent(OutputStream), scheduled for removal at or after 2.1.0
write in interface RtfBasicElementwrite in class RtfElement
public void writeContent(OutputStream out)
throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementIOExceptionpublic byte[] writeDefinition()
writeDefinition(OutputStream), scheduled for removal at or after 2.1.0
writeDefinition in interface RtfExtendedElement
public void writeDefinition(OutputStream result)
throws IOException
writeDefinition in interface RtfExtendedElementIOException
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||