|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.direct.RtfColorTableParser
public class RtfColorTableParser
The RtfColorTableParser handles the events generated by the RtfTokeniser while the RTF color table is being parsed.
Field Summary | |
---|---|
private int |
blue
The blue component of the current color being parsed. |
private int |
colorNr
The number of the current color being parsed. |
private int |
green
The green component of the current color being parsed. |
private RtfImportHeader |
importHeader
The RtfImportHeader to add color mappings to. |
private int |
red
The red component of the current color being parsed. |
Constructor Summary | |
---|---|
RtfColorTableParser(RtfImportHeader importHeader)
Constructs a new RtfColorTableParser. |
Method Summary | |
---|---|
void |
handleCtrlWord(String ctrlWord,
int groupLevel)
Handle RTF control words. |
void |
handleText(String text,
int groupLevel)
Handle text content. |
static boolean |
stringMatches(String text,
String start)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RtfImportHeader importHeader
private int colorNr
private int red
private int green
private int blue
Constructor Detail |
---|
public RtfColorTableParser(RtfImportHeader importHeader)
importHeader
- The RtfImportHeader to add the color mappings to.Method Detail |
---|
public static boolean stringMatches(String text, String start)
public void handleCtrlWord(String ctrlWord, int groupLevel)
ctrlWord
- The control word to handle.groupLevel
- Unusedpublic void handleText(String text, int groupLevel)
text
- The text to handle.groupLevel
- Unused.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |