org.apache.poi.xssf.usermodel

## Class DefaultIndexedColorMap

- java.lang.Object
- - org.apache.poi.xssf.usermodel.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 Summary

    Constructors
    Constructor and Description
    `DefaultIndexedColorMap()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `getDefaultRGB(int index)`
    `byte[]` | `getRGB(int index)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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

Copyright 2020 The Apache Software Foundation or its licensors, as applicable.