com.xinapse.multisliceimage.roi
Enum ContourMode

java.lang.Object
  extended by java.lang.Enum<ContourMode>
      extended by com.xinapse.multisliceimage.roi.ContourMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ContourMode>

public enum ContourMode
extends java.lang.Enum<ContourMode>

An enumeration of the modes of operation of intensity level contour generation.


Nested Class Summary
static class ContourMode.ComboBox
           
 
Enum Constant Summary
EDGE_SEEKING
          Edge seeking to get the intensity level.
FIXED
          A fixed user-set intensity level.
MOUSE_MINUS_DELTA
          The intensity level under the mouse minus delta.
MOUSE_PLUS_DELTA
          The intensity level under the mouse plus delta.
UNDER_MOUSE
          The intensity level under the mouse.
 
Method Summary
static ContourMode getPreferredContourMode()
          Returns the user's preferred ContourMode.
static void savePreferredContourMode(ContourMode mode)
          Saves the user's preferred ContourMode to the user preferences.
 java.lang.String toString()
          Returns a string describing this ContourMode.
static ContourMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ContourMode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EDGE_SEEKING

public static final ContourMode EDGE_SEEKING
Edge seeking to get the intensity level.


UNDER_MOUSE

public static final ContourMode UNDER_MOUSE
The intensity level under the mouse.


FIXED

public static final ContourMode FIXED
A fixed user-set intensity level.


MOUSE_PLUS_DELTA

public static final ContourMode MOUSE_PLUS_DELTA
The intensity level under the mouse plus delta.


MOUSE_MINUS_DELTA

public static final ContourMode MOUSE_MINUS_DELTA
The intensity level under the mouse minus delta.

Method Detail

values

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

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

valueOf

public static ContourMode 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

getPreferredContourMode

public static ContourMode getPreferredContourMode()
Returns the user's preferred ContourMode. Set from the user's preferences.

Returns:
the user's preferred ContourMode.

savePreferredContourMode

public static void savePreferredContourMode(ContourMode mode)
Saves the user's preferred ContourMode to the user preferences.

Parameters:
mode - the user's new preferred ContourMode.

toString

public java.lang.String toString()
Returns a string describing this ContourMode.

Overrides:
toString in class java.lang.Enum<ContourMode>
Returns:
a string describing this ContourMode.


Copyright 2006-2011 Xinapse Systems Limited. All Rights Reserved.