Package com.xinapse.multisliceimage.roi
Enum Class VertexHandle.Spacing
- All Implemented Interfaces:
Serializable
,Comparable<VertexHandle.Spacing>
,Constable
- Enclosing class:
- VertexHandle
Enumeration of the possible spacing factors for VertexHandles when displayed on an ROI,
to prevent then being shown too close together.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VertexHandle.Spacing
getInstance
(String descrip) Returns a vertex handle spacing according to the supplied String.static VertexHandle.Spacing
Returns the Spacing set in the user Preferences, or the default if not in the preferences.int
Returns the spacing factor between handles.static void
savePreferredSpacing
(VertexHandle.Spacing spacing) Saves the supplied Spacing to the user Preferences.toString()
static VertexHandle.Spacing
Returns the enum constant of this class with the specified name.static VertexHandle.Spacing[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOW
Close together spacing. -
MEDIUM
Medium-density spacing. -
HIGH
Far apart spacing.
-
-
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
-
getSpacingFactor
public int getSpacingFactor()Returns the spacing factor between handles.- Returns:
- the spacing factor between handles.
-
toString
- Overrides:
toString
in classEnum<VertexHandle.Spacing>
-
getInstance
Returns a vertex handle spacing according to the supplied String.- Parameters:
descrip
- a String that has been obtained using thetoString()
method of VertexHandle.Spacing. The case is ignored.- Returns:
- a Spaing corresponding to the supplied argument.
-
getPreferredSpacing
Returns the Spacing set in the user Preferences, or the default if not in the preferences.- Returns:
- the Spacing set in the user Preferences.
-
savePreferredSpacing
Saves the supplied Spacing to the user Preferences.- Parameters:
spacing
- the Spacing set as the user's preferred spacing.
-