Package com.xinapse.multisliceimage.roi
Enum Class ContourMode
- All Implemented Interfaces:
Serializable
,Comparable<ContourMode>
,Constable
An enumeration of the modes of operation of intensity level contour generation.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A JComboBox for selecting a ContourMode.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEdge seeking to get the intensity level.A fixed user-set intensity level.The intensity level under the mouse minus delta.The intensity level under the mouse plus delta.The intensity level under the mouse. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContourMode
Returns the user's preferred ContourMode.static void
Saves the user's preferred ContourMode to the user preferences.toString()
Returns a string describing this ContourMode.static ContourMode
Returns the enum constant of this class with the specified name.static ContourMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EDGE_SEEKING
Edge seeking to get the intensity level. -
UNDER_MOUSE
The intensity level under the mouse. -
FIXED
A fixed user-set intensity level. -
MOUSE_PLUS_DELTA
The intensity level under the mouse plus delta. -
MOUSE_MINUS_DELTA
The intensity level under the mouse minus delta.
-
-
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
-
getPreferredContourMode
Returns the user's preferred ContourMode. Set from the user's preferences.- Returns:
- the user's preferred ContourMode.
-
savePreferredContourMode
Saves the user's preferred ContourMode to the user preferences.- Parameters:
mode
- the user's new preferred ContourMode.
-
toString
Returns a string describing this ContourMode.- Overrides:
toString
in classEnum<ContourMode>
- Returns:
- a string describing this ContourMode.
-