Package moa.tasks
Enum Plot.LegendType
- java.lang.Object
-
- java.lang.Enum<Plot.LegendType>
-
- moa.tasks.Plot.LegendType
-
- All Implemented Interfaces:
Serializable
,Comparable<Plot.LegendType>
- Enclosing class:
- Plot
public static enum Plot.LegendType extends Enum<Plot.LegendType>
Type of legend.- Author:
- Dariusz Brzeziļæ½ski
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOX_HORIZONTAL
BOX_VERTICAL
NOBOX_HORIZONTAL
NOBOX_VERTICAL
NONE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String[]
getDescriptions()
Gets an array of string descriptions - one for each enum value.static String[]
getStringValues()
Get string values for the enum values.static Plot.LegendType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Plot.LegendType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Plot.LegendType NONE
-
BOX_VERTICAL
public static final Plot.LegendType BOX_VERTICAL
-
BOX_HORIZONTAL
public static final Plot.LegendType BOX_HORIZONTAL
-
NOBOX_VERTICAL
public static final Plot.LegendType NOBOX_VERTICAL
-
NOBOX_HORIZONTAL
public static final Plot.LegendType NOBOX_HORIZONTAL
-
-
Method Detail
-
values
public static Plot.LegendType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Plot.LegendType c : Plot.LegendType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plot.LegendType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescriptions
public static String[] getDescriptions()
Gets an array of string descriptions - one for each enum value.- Returns:
- a description for each enum value.
-
getStringValues
public static String[] getStringValues()
Get string values for the enum values.- Returns:
- a set of string values for the enum values.
-
-