|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<MaskAction>
com.xinapse.multisliceimage.roi.MaskAction
public enum MaskAction
This class represents the possible masking operation actions that can be applied to an ROI to mask out some of an image's pixels.
| Enum Constant Summary | |
|---|---|
MASK_INSIDE
MaskAction for masking pixels inside the ROI. |
|
MASK_INSIDE_SOFT
MaskAction for soft masking pixels inside the ROI. |
|
MASK_OUTSIDE
MaskAction for masking pixels outside the ROI. |
|
MASK_OUTSIDE_SOFT
MaskAction for soft masking pixels outside the ROI. |
|
NONE
MaskAction for no mask action. |
|
| Method Summary | |
|---|---|
static MaskAction |
getPreferredMaskAction()
Returns the user's preferred mask action. |
static void |
savePreferences()
Saves the current preferred mask action to the user's preferences. |
static void |
setPreference(MaskAction ma)
Sets the user's preferred mask action. |
java.lang.String |
toString()
Returns a string describing this MaskAction. |
static MaskAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MaskAction[] |
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 |
|---|
public static final MaskAction NONE
public static final MaskAction MASK_INSIDE
public static final MaskAction MASK_OUTSIDE
public static final MaskAction MASK_INSIDE_SOFT
public static final MaskAction MASK_OUTSIDE_SOFT
| Method Detail |
|---|
public static MaskAction[] values()
for (MaskAction c : MaskAction.values()) System.out.println(c);
public static MaskAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static MaskAction getPreferredMaskAction()
public static void setPreference(MaskAction ma)
ma - the user's new preferred mask action.public static void savePreferences()
public java.lang.String toString()
toString in class java.lang.Enum<MaskAction>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||