public class DynamicExcelColorProducer extends Object implements ExcelColorProducer
Constructor and Description |
---|
DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook) |
Modifier and Type | Method and 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.
|
public DynamicExcelColorProducer(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
public org.apache.poi.hssf.util.HSSFColor getColor(short index)
public short getNearestColor(Color awtColor)
ExcelColorProducer
getNearestColor
in interface ExcelColorProducer
Copyright © 2002–2017 Pentaho Corporation. All rights reserved.