public class HSSFColor extends java.lang.Object implements Color
Constructor and Description |
---|
HSSFColor()
Creates a new instance of HSSFColor
|
HSSFColor(int index,
int index2,
java.awt.Color color) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHexString()
returns colon-delimited hex string "0:0:0"
|
short |
getIndex()
returns color standard palette index
|
short |
getIndex2()
returns alternative color standard palette index
|
static java.util.Map<java.lang.Integer,HSSFColor> |
getIndexHash()
This function returns all the colours in an unmodifiable Map.
|
static java.util.Map<java.lang.Integer,HSSFColor> |
getMutableIndexHash()
This function returns all the Colours, stored in a Map that
can be edited.
|
short[] |
getTriplet()
returns RGB triplet (0, 0, 0)
|
static java.util.Map<java.lang.String,HSSFColor> |
getTripletHash()
this function returns all colors in a hastable.
|
static HSSFColor |
toHSSFColor(Color color)
Checked type cast color to an HSSFColor.
|
public HSSFColor()
public HSSFColor(int index, int index2, java.awt.Color color)
public static final java.util.Map<java.lang.Integer,HSSFColor> getIndexHash()
public static final java.util.Map<java.lang.Integer,HSSFColor> getMutableIndexHash()
getIndexHash()
which returns a
statically cached imuatable map of colours.public static java.util.Map<java.lang.String,HSSFColor> getTripletHash()
public short getIndex()
public short getIndex2()
public short[] getTriplet()
public java.lang.String getHexString()
Copyright 2023 The Apache Software Foundation or its licensors, as applicable.