com.lowagie.text.rtf.parser.destinations
public class RtfDestinationColorTable extends RtfDestination
RtfDestinationColorTable handles data destined for the color table destination
Since: 2.0.8
| Field Summary | |
|---|---|
| int | blue
The blue component of the current color being parsed. |
| HashMap | colorMap
Color map object for conversions |
| int | colorNr
The number of the current color being parsed. |
| int | cshade
Specifies the shade when specifying a theme color.
|
| int | ctint
Specifies the tint when specifying a theme color.
|
| int | green
The green component of the current color being parsed. |
| RtfImportMgr | importHeader
The RtfImportHeader to add color mappings to. |
| int | red
The red component of the current color being parsed. |
| int | themeColor
Specifies the use of a theme color.
|
| Constructor Summary | |
|---|---|
| RtfDestinationColorTable()
Constructor. | |
| RtfDestinationColorTable(RtfParser parser)
Constructs a new RtfColorTableParser.
| |
| Method Summary | |
|---|---|
| boolean | closeDestination() |
| Color | getColor(String key)
Get the Color object that is mapped to the key. |
| boolean | handleCharacter(int ch) |
| boolean | handleCloseGroup() |
| boolean | handleControlWord(RtfCtrlWordData ctrlWordData) |
| boolean | handleOpenGroup() |
| boolean | handleOpeningSubGroup() |
| void | processColor()
Processes the color triplet parsed from the document.
|
| void | setBlue(int value)
Set the blue color value. |
| void | setGreen(int value)
Set the green color value. |
| void | setParser(RtfParser parser) |
| void | setRed(int value)
Set the red color to value. |
| void | setShade(int value)
Set the shade value |
| void | setThemeColor(int value)
Set the theme color value. |
| void | setTint(int value)
Set the tint value |
| void | setToDefaults()
Set default values. |
See Also: ctint themeColor
See Also: cshade themeColor
See Also: RtfColorThemes ctint cshade
Parameters: parser an RtfParser
Color object that is mapped to the key.Parameters: key The map number.
*@return Color object from the map. null if key does not exist.
Parameters: value Value to set blue to.
Parameters: value Value to set green to.
Parameters: value Value to set red to.
Parameters: value Value to set the shade to
See Also: cshade
Parameters: value Value to set the theme color to
See Also: RtfColorThemes
Parameters: value Value to set the tint to
See Also: ctint