Class DynamicExcelColorProducer

    • 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: