org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper
Class DynamicExcelColorProducer

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper.DynamicExcelColorProducer
All Implemented Interfaces:
ExcelColorProducer

public class DynamicExcelColorProducer
extends Object
implements ExcelColorProducer

Todo: Document me!

Date: 05.09.2009 Time: 15:42:53

Author:
Thomas Morgner.

Constructor Summary
DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
           
 
Method Summary
 org.apache.poi.hssf.util.HSSFColor getColor(short index)
           
 short getNearestColor(Color awtColor)
          Returns the nearest indexed color for the palette (if palettes are used) or -1 if no palette is used.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicExcelColorProducer

public DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
Method Detail

getColor

public org.apache.poi.hssf.util.HSSFColor getColor(short index)

getNearestColor

public short getNearestColor(Color awtColor)
Description copied from interface: ExcelColorProducer
Returns the nearest indexed color for the palette (if palettes are used) or -1 if no palette is used.

Specified by:
getNearestColor in interface ExcelColorProducer
Returns: