public enum IndexedColors extends java.lang.Enum<IndexedColors>
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.
Modifier and Type | Field and Description |
---|---|
short |
index |
Modifier and Type | Method and Description |
---|---|
static IndexedColors |
fromInt(int index) |
short |
getIndex()
Returns index of this color
|
static IndexedColors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IndexedColors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IndexedColors BLACK1
public static final IndexedColors WHITE1
public static final IndexedColors RED1
public static final IndexedColors BRIGHT_GREEN1
public static final IndexedColors BLUE1
public static final IndexedColors YELLOW1
public static final IndexedColors PINK1
public static final IndexedColors TURQUOISE1
public static final IndexedColors BLACK
public static final IndexedColors WHITE
public static final IndexedColors RED
public static final IndexedColors BRIGHT_GREEN
public static final IndexedColors BLUE
public static final IndexedColors YELLOW
public static final IndexedColors PINK
public static final IndexedColors TURQUOISE
public static final IndexedColors DARK_RED
public static final IndexedColors GREEN
public static final IndexedColors DARK_BLUE
public static final IndexedColors DARK_YELLOW
public static final IndexedColors VIOLET
public static final IndexedColors TEAL
public static final IndexedColors GREY_25_PERCENT
public static final IndexedColors GREY_50_PERCENT
public static final IndexedColors CORNFLOWER_BLUE
public static final IndexedColors MAROON
public static final IndexedColors LEMON_CHIFFON
public static final IndexedColors LIGHT_TURQUOISE1
public static final IndexedColors ORCHID
public static final IndexedColors CORAL
public static final IndexedColors ROYAL_BLUE
public static final IndexedColors LIGHT_CORNFLOWER_BLUE
public static final IndexedColors SKY_BLUE
public static final IndexedColors LIGHT_TURQUOISE
public static final IndexedColors LIGHT_GREEN
public static final IndexedColors LIGHT_YELLOW
public static final IndexedColors PALE_BLUE
public static final IndexedColors ROSE
public static final IndexedColors LAVENDER
public static final IndexedColors TAN
public static final IndexedColors LIGHT_BLUE
public static final IndexedColors AQUA
public static final IndexedColors LIME
public static final IndexedColors GOLD
public static final IndexedColors LIGHT_ORANGE
public static final IndexedColors ORANGE
public static final IndexedColors BLUE_GREY
public static final IndexedColors GREY_40_PERCENT
public static final IndexedColors DARK_TEAL
public static final IndexedColors SEA_GREEN
public static final IndexedColors DARK_GREEN
public static final IndexedColors OLIVE_GREEN
public static final IndexedColors BROWN
public static final IndexedColors PLUM
public static final IndexedColors INDIGO
public static final IndexedColors GREY_80_PERCENT
public static final IndexedColors AUTOMATIC
public static IndexedColors[] values()
for (IndexedColors c : IndexedColors.values()) System.out.println(c);
public static IndexedColors valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic short getIndex()
public static IndexedColors fromInt(int index)
index
- the index of the colorjava.lang.IllegalArgumentException
- if index is not a valid IndexedColorsCopyright 2022 The Apache Software Foundation or its licensors, as applicable.