org.apache.fop.render.rtf.rtflib.rtfdoc
Class RtfColorTable
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfColorTable
public final class RtfColorTable
extends java.lang.Object
Singelton of the RTF color table.
This class was created for tag processing.
getColorNumber
public Integer getColorNumber(String name)
- the RTF number of a named color, or null if name not found
getColorNumber
public Integer getColorNumber(int red,
int green,
int blue)
Gets the number of color in the color table
red
- Color level redgreen
- Color level greenblue
- Color level blue
- The number of the color in the table
getInstance
public static RtfColorTable getInstance()
Singelton.
- The instance of RTFColorTable
writeColors
public void writeColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
throws IOException
Writes the color table in the header.
header
- The header container to write in
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.