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.
(不推荐使用的颜色索引方案,某些记录仍需要该索引方案,以及与 OLE2 格式的向后兼容性。每个元素对应一个颜色索引(从零开始)。使用默认索引调色板时,不会写出这些值,而是隐含的。当调色板从默认值修改后,将使用整个调色板。)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);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: 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.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public short getIndex()
public static IndexedColors fromInt(int index)
index
- the index of the color
(index - 颜色的索引)
java.lang.IllegalArgumentException
- if index is not a valid IndexedColors
(java.lang.IllegalArgumentException - 如果 index 不是有效的 IndexedColors)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.