org.jfor.jfor.converter
Class FoColorConverter

java.lang.Object
  extended by org.jfor.jfor.converter.FoColorConverter

 class FoColorConverter
extends java.lang.Object

Converts XSL-FO units to RTF units

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch, Andreas Putz a.putz@skynamics.com

Nested Class Summary
(package private) static interface FoColorConverter.IColorDecoder
          interface for various types of color decoders
 
Method Summary
(package private) static FoColorConverter getInstance()
          singleton pattern
(package private)  java.lang.Integer getRtfColorNumber(java.lang.String xslFoColor, ConverterLogChannel log)
          Compute the RTF color number for given XSL-FO color attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

static FoColorConverter getInstance()
singleton pattern


getRtfColorNumber

java.lang.Integer getRtfColorNumber(java.lang.String xslFoColor,
                                    ConverterLogChannel log)
Compute the RTF color number for given XSL-FO color attribute. Does not throw Exceptions on invalid xslFoColor, to avoid blocking document conversion if the only problem is an unknown color.

Returns:
null if unable to decode color