public final class RtfColorTable
extends java.lang.Object
Singelton of the RTF color table.
This class was created for
This work was authored by Andreas Putz (a.putz@skynamics.com).
Modifier and Type | Method | Description |
---|---|---|
java.lang.Integer |
getColorNumber(int red,
int green,
int blue) |
Gets the number of color in the color table
|
java.lang.Integer |
getColorNumber(java.lang.String name) |
|
static RtfColorTable |
getInstance() |
Singelton.
|
void |
writeColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header) |
Writes the color table in the header.
|
public static RtfColorTable getInstance()
public java.lang.Integer getColorNumber(java.lang.String name)
name
- a named colorpublic java.lang.Integer getColorNumber(int red, int green, int blue)
red
- Color level redgreen
- Color level greenblue
- Color level bluepublic void writeColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header) throws java.io.IOException
header
- The header container to write injava.io.IOException
- On errorCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.