Package com.xinapse.multisliceimage.roi
Enum Class MaskAction
- All Implemented Interfaces:
Serializable
,Comparable<MaskAction>
,Constable
An enumeration of possible masking operation actions that can
be applied to an ROI to mask out some of an image's pixels.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionMaskAction for masking pixels inside the ROI.MaskAction for soft masking pixels inside the ROI.MaskAction for masking pixels outside the ROI.MaskAction for soft masking pixels outside the ROI.MaskAction for no mask action. -
Method Summary
Modifier and TypeMethodDescriptionstatic MaskAction
Returns the user's preferred mask action.static void
Sets the user's preferred mask action.toString()
Returns a string describing this MaskAction.static MaskAction
Returns the enum constant of this class with the specified name.static MaskAction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
MaskAction for no mask action. -
MASK_INSIDE
MaskAction for masking pixels inside the ROI. -
MASK_OUTSIDE
MaskAction for masking pixels outside the ROI. -
MASK_INSIDE_SOFT
MaskAction for soft masking pixels inside the ROI. -
MASK_OUTSIDE_SOFT
MaskAction for soft masking pixels outside the ROI.
-
-
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
-
getPreferredMaskAction
Returns the user's preferred mask action. Set from the user's preferences.- Returns:
- the user's preferred mask action.
-
savePreferredMaskAction
Sets the user's preferred mask action. Note that this does not permanently save the setting to user's preferences.- Parameters:
ma
- the user's new preferred mask action.
-
toString
Returns a string describing this MaskAction.- Overrides:
toString
in classEnum<MaskAction>
- Returns:
- a string describing this MaskAction.
-