Package gov.nih.mipav.model.algorithms
Enum ContourPlot.DefaultColorScheme
- java.lang.Object
-
- java.lang.Enum<ContourPlot.DefaultColorScheme>
-
- gov.nih.mipav.model.algorithms.ContourPlot.DefaultColorScheme
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ContourPlot.DefaultColorScheme>
- Enclosing class:
- ContourPlot
public static enum ContourPlot.DefaultColorScheme extends java.lang.Enum<ContourPlot.DefaultColorScheme>
Enum containing predefinedContourPlot.ColorScheme
s, which can be accessed throughget()
.- Author:
- lucareichmann
-
-
Field Summary
Fields Modifier and Type Field Description private ContourPlot.ColorScheme
scheme
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultColorScheme(ContourPlot.ColorScheme scheme)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContourPlot.ColorScheme
get()
Returns the preset'sContourPlot.ColorScheme
objectstatic ContourPlot.DefaultColorScheme
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ContourPlot.DefaultColorScheme[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LIGHT
public static final ContourPlot.DefaultColorScheme LIGHT
-
DARK
public static final ContourPlot.DefaultColorScheme DARK
-
-
Field Detail
-
scheme
private final ContourPlot.ColorScheme scheme
-
-
Constructor Detail
-
DefaultColorScheme
private DefaultColorScheme(ContourPlot.ColorScheme scheme)
-
-
Method Detail
-
values
public static ContourPlot.DefaultColorScheme[] 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 (ContourPlot.DefaultColorScheme c : ContourPlot.DefaultColorScheme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContourPlot.DefaultColorScheme valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
get
public ContourPlot.ColorScheme get()
Returns the preset'sContourPlot.ColorScheme
object- Returns:
- color scheme
-
-