Enum Class Legend2D.Mode
- All Implemented Interfaces:
Serializable, Comparable<Legend2D.Mode>, Constable
- Enclosing class:
Legend2D
The supported semantic legend modes.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA continuous gradient legend for a single continuous trait.A continuous gradient legend for density or frequency values, as used by distribution views.A segmented legend for indexed discrete trait values.A continuous gradient legend for fitness values.No legend is available for the current graph. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Legend2D.ModeReturns the enum constant of this class with the specified name.static Legend2D.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No legend is available for the current graph. -
FITNESS_GRADIENT
A continuous gradient legend for fitness values. -
DENSITY_GRADIENT
A continuous gradient legend for density or frequency values, as used by distribution views. -
CONTINUOUS_TRAIT
A continuous gradient legend for a single continuous trait. -
DISCRETE_TRAIT
A segmented legend for indexed discrete trait values.
-
-
Constructor Details
-
Mode
private Mode()
-
-
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
-