|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<MaskMode>
com.xinapse.multisliceimage.roi.MaskMode
public enum MaskMode
An enumeration of possible masking mode. The masking mode determines how much of a pixel must be within an ROI (as a percentage of the pixels's area) for that pixel to be "inside" the ROI.
| Nested Class Summary | |
|---|---|
static class |
MaskMode.Panel
A JPanel for selecting a MaskMode. |
| Enum Constant Summary | |
|---|---|
ALL
MaskMode such that all of a pixel must be inside an ROI for that pixel to be part of the mask. |
|
ANY
MaskMode such that if any part of a pixel is inside an ROI, that pixel is part of the mask. |
|
HALF
MaskMode such that if at least 50% of a pixel is inside an ROI, that pixel is part of the mask. |
|
| Method Summary | |
|---|---|
static MaskMode |
getInstance(java.lang.String modeString)
Returns a MaskMode corresponding to the supplied String. |
static MaskMode |
getPreferredMaskMode(java.util.prefs.Preferences prefs,
MaskMode defaultMaskMode)
Returns the MaskMode set in the UserPreferences, or the default MaskMode, if none is set in the Preferences. |
java.lang.String |
getToolTipString()
Returns a String that is useful for building a ToolTip or description of this MaskMode. |
static void |
savePreferences(MaskMode maskMode,
java.util.prefs.Preferences prefs)
Saves the supplied MaskMode as the user's preferrred MaskMode. |
double |
threshold()
Returns the pixel area threshold for this MaskMode as a fraction of the pixel's area. |
static MaskMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static MaskMode[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MaskMode ANY
public static final MaskMode HALF
public static final MaskMode ALL
| Method Detail |
|---|
public static MaskMode[] values()
for (MaskMode c : MaskMode.values()) System.out.println(c);
public static MaskMode 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 null
public static MaskMode getInstance(java.lang.String modeString)
throws com.xinapse.util.InvalidArgumentException
com.xinapse.util.InvalidArgumentException - if the supplied String does not match any mask mode name.public java.lang.String getToolTipString()
public double threshold()
public static void savePreferences(MaskMode maskMode,
java.util.prefs.Preferences prefs)
maskMode - the MaskMode to save in the user's preferences.prefs - the user Preferences in which to save the MaskMode.
public static MaskMode getPreferredMaskMode(java.util.prefs.Preferences prefs,
MaskMode defaultMaskMode)
prefs - the user Preferences in which to look for the preferred MaskMode.defaultMaskMode - the default to return if the preferred MaskMode cannot
be found in the user Preferences.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||