Enum Class Legend2D.Mode

All Implemented Interfaces:
Serializable, Comparable<Legend2D.Mode>, Constable
Enclosing class:
Legend2D

public static enum Legend2D.Mode extends Enum<Legend2D.Mode>
The supported semantic legend modes.
  • Enum Constant Details

    • NONE

      public static final Legend2D.Mode NONE
      No legend is available for the current graph.
    • FITNESS_GRADIENT

      public static final Legend2D.Mode FITNESS_GRADIENT
      A continuous gradient legend for fitness values.
    • DENSITY_GRADIENT

      public static final Legend2D.Mode DENSITY_GRADIENT
      A continuous gradient legend for density or frequency values, as used by distribution views.
    • CONTINUOUS_TRAIT

      public static final Legend2D.Mode CONTINUOUS_TRAIT
      A continuous gradient legend for a single continuous trait.
    • DISCRETE_TRAIT

      public static final Legend2D.Mode DISCRETE_TRAIT
      A segmented legend for indexed discrete trait values.
  • Constructor Details

    • Mode

      private Mode()
  • Method Details

    • values

      public static Legend2D.Mode[] 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 Legend2D.Mode 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