Package org.apache.poi.hssf.util
Enum Class HSSFColor.HSSFColorPredefined
java.lang.Object
java.lang.Enum<HSSFColor.HSSFColorPredefined>
org.apache.poi.hssf.util.HSSFColor.HSSFColorPredefined
- All Implemented Interfaces:
Serializable
,Comparable<HSSFColor.HSSFColorPredefined>
,Constable
- Enclosing class:
- HSSFColor
Predefined HSSFColors with their given palette index (and an optional 2nd index)
- Since:
- POI 3.16 beta 2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecial Default/Normal/Automatic color. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
short
getIndex()
short
short[]
Returns the enum constant of this class with the specified name.static HSSFColor.HSSFColorPredefined[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLACK
-
BROWN
-
OLIVE_GREEN
-
DARK_GREEN
-
DARK_TEAL
-
DARK_BLUE
-
INDIGO
-
GREY_80_PERCENT
-
ORANGE
-
DARK_YELLOW
-
GREEN
-
TEAL
-
BLUE
-
BLUE_GREY
-
GREY_50_PERCENT
-
RED
-
LIGHT_ORANGE
-
LIME
-
SEA_GREEN
-
AQUA
-
LIGHT_BLUE
-
VIOLET
-
GREY_40_PERCENT
-
PINK
-
GOLD
-
YELLOW
-
BRIGHT_GREEN
-
TURQUOISE
-
DARK_RED
-
SKY_BLUE
-
PLUM
-
GREY_25_PERCENT
-
ROSE
-
LIGHT_YELLOW
-
LIGHT_GREEN
-
LIGHT_TURQUOISE
-
PALE_BLUE
-
LAVENDER
-
WHITE
-
CORNFLOWER_BLUE
-
LEMON_CHIFFON
-
MAROON
-
ORCHID
-
CORAL
-
ROYAL_BLUE
-
LIGHT_CORNFLOWER_BLUE
-
TAN
-
AUTOMATIC
Special Default/Normal/Automatic color.Note: This class is NOT in the default Map returned by HSSFColor. The index is a special case which is interpreted in the various setXXXColor calls.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
public short getIndex()- See Also:
-
getIndex2
public short getIndex2()- See Also:
-
getTriplet
public short[] getTriplet()- See Also:
-
getHexString
- See Also:
-
getColor
- Returns:
- (a copy of) the HSSFColor assigned to the enum
-