public class RtfDestinationColorTable extends RtfDestination
RtfDestinationColorTable handles data destined for the color table destinationlastCtrlWord, modified, rtfParser| Constructor and Description |
|---|
RtfDestinationColorTable()
Constructor.
|
RtfDestinationColorTable(RtfParser parser)
Constructs a new RtfColorTableParser.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
closeDestination()
Clean up when destination is closed.
|
Color |
getColor(String key)
Get the
Color object that is mapped to the key. |
boolean |
handleCloseGroup()
Clean up when group is closed.
|
boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination
|
boolean |
handleCharacter(int ch)
Handle text for this destination
|
boolean |
handleOpenGroup()
Setup when group is opened.
|
boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group
|
void |
setParser(RtfParser parser)
Set the parser to use with the RtfDestination object.
|
void |
setToDefaults()
Set default values.
|
addListener, afterCtrlWord, afterCharacter, beforeCtrlWord, beforeCharacter, getNewTokeniserState, isModified, onCloseGroup, onCtrlWord, onCharacter, onOpenGroup, removeListenerpublic RtfDestinationColorTable()
public RtfDestinationColorTable(RtfParser parser)
parser - an RtfParserpublic void setParser(RtfParser parser)
RtfDestinationsetParser in class RtfDestinationparser - The RtfParser object.public boolean handleOpeningSubGroup()
RtfDestinationhandleOpeningSubGroup in class RtfDestinationpublic boolean closeDestination()
RtfDestinationcloseDestination in class RtfDestinationpublic boolean handleCloseGroup()
RtfDestinationhandleCloseGroup in class RtfDestinationpublic boolean handleOpenGroup()
RtfDestinationhandleOpenGroup in class RtfDestinationpublic boolean handleCharacter(int ch)
RtfDestinationhandleCharacter in class RtfDestinationpublic boolean handleControlWord(RtfCtrlWordData ctrlWordData)
RtfDestinationhandleControlWord in class RtfDestinationctrlWordData - The control word and parameter information objectpublic void setToDefaults()
setToDefaults in class RtfDestinationCopyright © 2015. All rights reserved.