Class DefaultIndexedColorMap

  • All Implemented Interfaces:
    IndexedColorMap

    public class DefaultIndexedColorMap
    extends java.lang.Object
    implements IndexedColorMap
    Uses the legacy colors defined in HSSF for index lookups
    • Constructor Detail

      • DefaultIndexedColorMap

        public DefaultIndexedColorMap()
    • Method Detail

      • getRGB

        public byte[] getRGB​(int index)
        Specified by:
        getRGB in interface IndexedColorMap
        Parameters:
        index - color index to look up
        Returns:
        the RGB array for the index, or null if the index is invalid/undefined
        See Also:
        IndexedColorMap.getRGB(int)
      • getDefaultRGB

        public static byte[] getDefaultRGB​(int index)
        Parameters:
        index -
        Returns:
        RGB bytes from HSSF default color by index