org.apache.poi.xssf.usermodel
Class DefaultIndexedColorMap

java.lang.Object
  extended by 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
DefaultIndexedColorMap()
           
 
Method Summary
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