public class RtfColorTable
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getColorNumber(int red,
int green,
int blue)
Gets the number of color in the color table
|
java.lang.Integer |
getColorNumber(java.lang.String name)
get the RTF number of a named color
|
static RtfColorTable |
getInstance()
Singelton.
|
void |
writeColors(RtfHeader header)
Writes the color table in the header.
|
public static RtfColorTable getInstance()
public java.lang.Integer getColorNumber(java.lang.String name)
public int getColorNumber(int red, int green, int blue)
red
- Color level redgreen
- Color level greenblue
- Color level bluepublic void writeColors(RtfHeader header) throws java.io.IOException
header
- The header container to write injava.io.IOException
- On error