public class RtfColorList extends RtfElement implements RtfExtendedElement
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 color list.
|
void |
writeContent(OutputStream out)
unused
|
void |
writeDefinition(OutputStream result)
Write the definition part of the color list.
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInHeader, setInTable, setRtfDocumentpublic RtfColorList(RtfDocument doc)
doc - The RtfDocument this RtfColorList belongs topublic int getColorNumber(RtfColor color)
color - The RtfColor for which to get the indexpublic void writeContent(OutputStream out) throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementout - The OutputStream to write the content toIOExceptionpublic void writeDefinition(OutputStream result) throws IOException
writeDefinition in interface RtfExtendedElementresult - The OutputStream to write the element definition toIOExceptionCopyright © 2015. All rights reserved.