org.apache.poi.hssf.util
public class: HSSFColor [javadoc |
source]
java.lang.Object
org.apache.poi.hssf.util.HSSFColor
Direct Known Subclasses:
CORNFLOWER_BLUE, GOLD, LAVENDER, ORCHID, GREEN, BLUE, LIGHT_TURQUOISE, LEMON_CHIFFON, BRIGHT_GREEN, LIGHT_GREEN, LIGHT_ORANGE, TEAL, GREY_50_PERCENT, PALE_BLUE, BLACK, BROWN, BLUE_GREY, RED, TAN, MAROON, GREY_40_PERCENT, ROSE, PINK, YELLOW, DARK_TEAL, DARK_YELLOW, SKY_BLUE, WHITE, DARK_GREEN, DARK_BLUE, LIGHT_YELLOW, LIGHT_BLUE, SEA_GREEN, CORAL, DARK_RED, INDIGO, OLIVE_GREEN, VIOLET, AQUA, ROYAL_BLUE, PLUM, TURQUOISE, CustomColor, AUTOMATIC, GREY_25_PERCENT, LIGHT_CORNFLOWER_BLUE, LIME, ORANGE, GREY_80_PERCENT
Intends to provide support for the very evil index to triplet issue and
will likely replace the color constants interface for HSSF 2.0.
This class contains static inner class members for representing colors.
Each color has an index (for the standard palette in Excel (tm) ),
native (RGB) triplet and string triplet. The string triplet is as the
color would be represented by Gnumeric. Having (string) this here is a bit of a
collusion of function between HSSF and the HSSFSerializer but I think its
a reasonable one in this case.
- author:
Andrew - C. Oliver (acoliver at apache dot org)
- author:
Brian - Sanders (bsanders at risklabs dot com) - full default color palette
| Method from org.apache.poi.hssf.util.HSSFColor Detail: |
public String getHexString() {
return BLACK.hexString;
}
|
public short getIndex() {
return BLACK.index;
}
|
public static final Hashtable getIndexHash() {
return createColorsByIndexMap();
}
this function returns all colors in a hastable. Its not implemented as a
static member/staticly initialized because that would be dirty in a
server environment as it is intended. This means you'll eat the time
it takes to create it once per request but you will not hold onto it
if you have none of those requests. |
public short[] getTriplet() {
return BLACK.triplet;
}
|
public static final Hashtable getTripletHash() {
return createColorsByHexStringMap();
}
this function returns all colors in a hastable. Its not implemented as a
static member/staticly initialized because that would be dirty in a
server environment as it is intended. This means you'll eat the time
it takes to create it once per request but you will not hold onto it
if you have none of those requests. |