org.pentaho.reporting.engine.classic.core.modules.output.table.xls.helper
Class DynamicExcelColorProducer
java.lang.Object
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.
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. |
DynamicExcelColorProducer
public DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
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: