public final class StaticExcelColorSupport extends Object implements ExcelColorProducer
Constructor and Description |
---|
StaticExcelColorSupport()
DefaultConstructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.poi.hssf.util.HSSFColor |
getColor(short index) |
short |
getNearestColor(Color awtColor)
Find a suitable color for the cell.
|
static short |
getNearestColor(Color awtColor,
Map triplets) |
public short getNearestColor(Color awtColor)
getNearestColor
in interface ExcelColorProducer
awtColor
- the awt color that should be transformed into an Excel color.public org.apache.poi.hssf.util.HSSFColor getColor(short index)