|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CombineMode>
com.xinapse.multisliceimage.roi.CombineMode
public enum CombineMode
An enumeration of possible ROI combination operations that can be be applied to a set of ROIs to create a single resulting ROI.
| Nested Class Summary | |
|---|---|
static class |
CombineMode.Panel
A JPanel for selecting a CombineMode. |
| Enum Constant Summary | |
|---|---|
INTERSECTION
CombineMode for creating the intersection of all ROIs. |
|
UNION
CombineMode for creating a union of all ROIs. |
|
XOR
CombineMode for creating the exclusive OR (XOR) of all ROIs. |
|
| Method Summary | |
|---|---|
static CombineMode |
getPreferredCombineMode(java.util.prefs.Preferences prefs,
CombineMode defaultCombineMode)
Returns the CombineMode set in the UserPreferences, or the default CombineMode, if none is set in the Preferences. |
static void |
savePreferences(CombineMode combineMode,
java.util.prefs.Preferences prefs)
Saves the supplied CombineMode as the user's preferrred CombineMode. |
java.lang.String |
toString()
Returns a string describing this CombineMode. |
static CombineMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CombineMode[] |
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 CombineMode UNION
public static final CombineMode INTERSECTION
public static final CombineMode XOR
| Method Detail |
|---|
public static CombineMode[] values()
for (CombineMode c : CombineMode.values()) System.out.println(c);
public static CombineMode 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 java.lang.String toString()
toString in class java.lang.Enum<CombineMode>
public static void savePreferences(CombineMode combineMode,
java.util.prefs.Preferences prefs)
combineMode - the CombineMode to save in the user's preferences.prefs - the user Preferences in which to save the CombineMode.
public static CombineMode getPreferredCombineMode(java.util.prefs.Preferences prefs,
CombineMode defaultCombineMode)
prefs - the user Preferences in which to look for the preferred CombineMode.defaultCombineMode - the default to return if the preferred CombineMode 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 | ||||||||