Package io.keikai.axyra.sheets.style
Enum Class Theme.Slot
- All Implemented Interfaces:
Serializable,Comparable<Theme.Slot>,Constable
- Enclosing class:
- Theme
The 12 theme color slots, in ECMA-376
<a:clrScheme> order.
ordinal() is not the index that Color.theme(int) takes:
DARK1/LIGHT1 and DARK2/LIGHT2 are swapped there, so
Color.theme(0) is LIGHT1. The accent and hyperlink slots have the
same position in both orders.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccent 1, the first chart and table series color.Accent 2.Accent 3.Accent 4.Accent 5.Accent 6.dk1, Excel's "Text 1"; usually black.dk2, Excel's "Text 2".Color of a visited hyperlink.Color of an unvisited hyperlink.lt1, Excel's "Background 1"; usually white.lt2, Excel's "Background 2". -
Method Summary
Modifier and TypeMethodDescriptionstatic Theme.SlotReturns the enum constant of this class with the specified name.static Theme.Slot[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DARK1
dk1, Excel's "Text 1"; usually black.Color.theme(1). -
LIGHT1
lt1, Excel's "Background 1"; usually white.Color.theme(0). -
DARK2
dk2, Excel's "Text 2".Color.theme(3). -
LIGHT2
lt2, Excel's "Background 2".Color.theme(2). -
ACCENT1
Accent 1, the first chart and table series color.Color.theme(4). -
ACCENT2
Accent 2.Color.theme(5). -
ACCENT3
Accent 3.Color.theme(6). -
ACCENT4
Accent 4.Color.theme(7). -
ACCENT5
Accent 5.Color.theme(8). -
ACCENT6
Accent 6.Color.theme(9). -
HYPERLINK
Color of an unvisited hyperlink.Color.theme(10). -
FOLLOWED_HYPERLINK
Color of a visited hyperlink.Color.theme(11).
-
-
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
-