Package org.apache.poi.ss.usermodel
Enum Class IndexedColors
- All Implemented Interfaces:
Serializable
,Comparable<IndexedColors>
,Constable
A deprecated indexing scheme for colours that is still required for some records, and for backwards
compatibility with OLE2 formats.
Each element corresponds to a color index (zero-based). When using the default indexed color palette, the values are not written out, but instead are implied. When the color palette has been modified from default, then the entire color palette is used.
- Author:
- Yegor Kozlov
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexedColors
fromInt
(int index) short
getIndex()
Returns index of this colorstatic IndexedColors
Returns the enum constant of this class with the specified name.static IndexedColors[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLACK1
-
WHITE1
-
RED1
-
BRIGHT_GREEN1
-
BLUE1
-
YELLOW1
-
PINK1
-
TURQUOISE1
-
BLACK
-
WHITE
-
RED
-
BRIGHT_GREEN
-
BLUE
-
YELLOW
-
PINK
-
TURQUOISE
-
DARK_RED
-
GREEN
-
DARK_BLUE
-
DARK_YELLOW
-
VIOLET
-
TEAL
-
GREY_25_PERCENT
-
GREY_50_PERCENT
-
CORNFLOWER_BLUE
-
MAROON
-
LEMON_CHIFFON
-
LIGHT_TURQUOISE1
-
ORCHID
-
CORAL
-
ROYAL_BLUE
-
LIGHT_CORNFLOWER_BLUE
-
SKY_BLUE
-
LIGHT_TURQUOISE
-
LIGHT_GREEN
-
LIGHT_YELLOW
-
PALE_BLUE
-
ROSE
-
LAVENDER
-
TAN
-
LIGHT_BLUE
-
AQUA
-
LIME
-
GOLD
-
LIGHT_ORANGE
-
ORANGE
-
BLUE_GREY
-
GREY_40_PERCENT
-
DARK_TEAL
-
SEA_GREEN
-
DARK_GREEN
-
OLIVE_GREEN
-
BROWN
-
PLUM
-
INDIGO
-
GREY_80_PERCENT
-
AUTOMATIC
-
-
Field Details
-
index
public final short index
-
-
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()Returns index of this color- Returns:
- index of this color
-
fromInt
- Parameters:
index
- the index of the color- Returns:
- the corresponding IndexedColors enum
- Throws:
IllegalArgumentException
- if index is not a valid IndexedColors- Since:
- 3.15-beta2
-