Enum Class Theme.Slot

java.lang.Object
java.lang.Enum<Theme.Slot>
io.keikai.axyra.sheets.style.Theme.Slot
All Implemented Interfaces:
Serializable, Comparable<Theme.Slot>, Constable
Enclosing class:
Theme

public static enum Theme.Slot extends Enum<Theme.Slot>
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.
  • Enum Constant Details

    • DARK1

      public static final Theme.Slot DARK1
      dk1, Excel's "Text 1"; usually black. Color.theme(1).
    • LIGHT1

      public static final Theme.Slot LIGHT1
      lt1, Excel's "Background 1"; usually white. Color.theme(0).
    • DARK2

      public static final Theme.Slot DARK2
      dk2, Excel's "Text 2". Color.theme(3).
    • LIGHT2

      public static final Theme.Slot LIGHT2
      lt2, Excel's "Background 2". Color.theme(2).
    • ACCENT1

      public static final Theme.Slot ACCENT1
      Accent 1, the first chart and table series color. Color.theme(4).
    • ACCENT2

      public static final Theme.Slot ACCENT2
      Accent 2. Color.theme(5).
    • ACCENT3

      public static final Theme.Slot ACCENT3
      Accent 3. Color.theme(6).
    • ACCENT4

      public static final Theme.Slot ACCENT4
      Accent 4. Color.theme(7).
    • ACCENT5

      public static final Theme.Slot ACCENT5
      Accent 5. Color.theme(8).
    • ACCENT6

      public static final Theme.Slot ACCENT6
      Accent 6. Color.theme(9).
  • Method Details

    • values

      public static Theme.Slot[] 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

      public static Theme.Slot valueOf(String name)
      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 name
      NullPointerException - if the argument is null