public class CustomIndexedColorMap extends java.lang.Object implements IndexedColorMap
Modifier and Type | Method and Description |
---|---|
static CustomIndexedColorMap |
fromColors(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColors colors)
OOXML spec says if this exists it must have all indexes.
|
byte[] |
getRGB(int index) |
public byte[] getRGB(int index)
getRGB
in interface IndexedColorMap
index
- color index to look uppublic static CustomIndexedColorMap fromColors(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColors colors)
From the OOXML Spec, Part 1, section 18.8.27:
This element contains a sequence of RGB color values that correspond to color indexes (zero-based). When using the default indexed color palette, the values are not written out, but instead are implied. When the color palette has been modified from default, then the entire color palette is written out.
colors
- CTColors from styles.xml possibly defining a custom color indexing schemeCopyright 2020 The Apache Software Foundation or its licensors, as applicable.