Package guideme.color

Enum Class SymbolicColor

java.lang.Object
java.lang.Enum<SymbolicColor>
guideme.color.SymbolicColor
All Implemented Interfaces:
ColorValue, Serializable, Comparable<SymbolicColor>, Constable

public enum SymbolicColor extends Enum<SymbolicColor> implements ColorValue
Symbolic colors can be overridden more easily in styles and define both a light- and dark-themed color variant.
  • Enum Constant Details

  • Method Details

    • values

      public static SymbolicColor[] 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 SymbolicColor 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
    • resolve

      public int resolve(LightDarkMode lightDarkMode)
      Description copied from interface: ColorValue
      Resolve as ARGB 32-bit.
      Specified by:
      resolve in interface ColorValue