Package org.apache.poi.xssf.usermodel
Class DefaultIndexedColorMap
java.lang.Object
org.apache.poi.xssf.usermodel.DefaultIndexedColorMap
- All Implemented Interfaces:
IndexedColorMap
Uses the legacy colors defined in HSSF for index lookups
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
getDefaultRGB
(int index) byte[]
getRGB
(int index)
-
Constructor Details
-
DefaultIndexedColorMap
public DefaultIndexedColorMap()
-
-
Method Details
-
getRGB
public byte[] getRGB(int index) - Specified by:
getRGB
in interfaceIndexedColorMap
- Parameters:
index
- color index to look up- Returns:
- the RGB array for the index, or null if the index is invalid/undefined
- See Also:
-
getDefaultRGB
public static byte[] getDefaultRGB(int index) - Parameters:
index
-- Returns:
- RGB bytes from HSSF default color by index
-