Enum Class LeafIcon.LeafState

java.lang.Object
java.lang.Enum<LeafIcon.LeafState>
uno.anahata.asi.swing.icons.LeafIcon.LeafState
All Implemented Interfaces:
Serializable, Comparable<LeafIcon.LeafState>, Constable
Enclosing class:
LeafIcon

public static enum LeafIcon.LeafState extends Enum<LeafIcon.LeafState>
Stage of the leaf's lifecycle, mapped to context pruning states.
Author:
anahata
  • Enum Constant Details

    • ACTIVE

      public static final LeafIcon.LeafState ACTIVE
      Active, full of life (Green). Representing AUTO + Not Expired.
    • WITHERED

      public static final LeafIcon.LeafState WITHERED
      Withered, ready to fall (Light Brown). Representing AUTO + Expired.
    • DEAD

      public static final LeafIcon.LeafState DEAD
      Dead and dry (Dark Brown). Representing explicitly PRUNED.
  • Constructor Details

    • LeafState

      private LeafState()
  • Method Details

    • values

      public static LeafIcon.LeafState[] 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 LeafIcon.LeafState 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