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
-
-
Constructor Summary
Constructors Constructor Description DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceExcelColorProducer
- Returns:
-
-