cz.cuni.jagrlib.testing
Enum SampleColormap.ColormapType

java.lang.Object
  extended by java.lang.Enum<SampleColormap.ColormapType>
      extended by cz.cuni.jagrlib.testing.SampleColormap.ColormapType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SampleColormap.ColormapType>
Enclosing class:
SampleColormap

protected static enum SampleColormap.ColormapType
extends java.lang.Enum<SampleColormap.ColormapType>

Implemented colormap types.


Enum Constant Summary
CMAP_GRAY
          Gray color ramp.
CMAP_TRICOLOR
          Tricolor.
 
Method Summary
static SampleColormap.ColormapType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SampleColormap.ColormapType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CMAP_GRAY

public static final SampleColormap.ColormapType CMAP_GRAY
Gray color ramp.


CMAP_TRICOLOR

public static final SampleColormap.ColormapType CMAP_TRICOLOR
Tricolor.

Method Detail

values

public static SampleColormap.ColormapType[] 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 (SampleColormap.ColormapType c : SampleColormap.ColormapType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SampleColormap.ColormapType 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 name
java.lang.NullPointerException - if the argument is null