public class HSSFColor extends java.lang.Object implements Color
Modifier and Type | Class and Description |
---|---|
static class |
HSSFColor.HSSFColorPredefined
Predefined HSSFColors with their given palette index (and an optional 2nd index)
|
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 |
---|---|
boolean |
equals(java.lang.Object o) |
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.
|
int |
hashCode() |
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 java.util.Map<java.lang.Integer,HSSFColor> getIndexHash()
public static java.util.Map<java.lang.Integer,HSSFColor> getMutableIndexHash()
getIndexHash()
which returns a
statically cached immutable 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()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.