Class RtfColorTable
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfColorTable
Singelton of the RTF color table.
This class was created for fo:basic-link tag processing.
This work was originally authored by Andreas Putz
-
Method Summary
Modifier and TypeMethodDescriptiongetColorNumber(int red, int green, int blue) Gets the number of color in the color tablegetColorNumber(String name) static RtfColorTableSingelton.voidwriteColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header) Writes the color table in the header.
-
Method Details
-
getInstance
Singelton.- Returns:
- The instance of RTFColorTable
-
getColorNumber
- Parameters:
name- a named color- Returns:
- the RTF number of a named color, or null if name not found
-
getColorNumber
Gets the number of color in the color table- Parameters:
red- Color level redgreen- Color level greenblue- Color level blue- Returns:
- The number of the color in the table
-
writeColors
public void writeColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header) throws IOException Writes the color table in the header.- Parameters:
header- The header container to write in- Throws:
IOException- On error
-