org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfColorTable


public final class RtfColorTable
extends java.lang.Object

Singelton of the RTF color table. This class was created for tag processing.
Author:
Andreas Putz

Method Summary

Integer
getColorNumber(String name)
Integer
getColorNumber(int red, int green, int blue)
Gets the number of color in the color table
static RtfColorTable
getInstance()
Singelton.
void
writeColors(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
Writes the color table in the header.

Method Details

getColorNumber

public Integer getColorNumber(String name)
Parameters:
name - a named color
Returns:
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
Parameters:
red - Color level red
green - Color level green
blue - Color level blue
Returns:
The number of the color in the table

getInstance

public static RtfColorTable getInstance()
Singelton.
Returns:
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.
Parameters:
header - The header container to write in

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.