|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<ComplexMode>
com.xinapse.multisliceimage.ComplexMode
public enum ComplexMode
An enumeration of the possible display/calculation modes for complex numbers.
| Enum Constant Summary | |
|---|---|
IMAGINARY
Selects the imaginary part of a complex number. |
|
MAGNITUDE
Selects the magnitude of a complex number. |
|
PHASE
Selects the phase of a complex number. |
|
REAL
Selects the real part of a complex number. |
|
| Field Summary | |
|---|---|
static ComplexMode |
DEFAULT_COMPLEX_MODE
The default ComplexMode for applications. |
| Method Summary | |
|---|---|
static ComplexMode |
getInstance(java.lang.String modeString)
Returns the ComplexMode corresponding to the supplied String argument. |
static ComplexMode |
getPreferredMode(java.util.prefs.Preferences prefs)
Returns the ComplexMode set in the supplied Preferences, or the default ComplexMode. |
static void |
savePreferences(ComplexMode mode,
java.util.prefs.Preferences prefs)
Saves the supplied ComplexMode to the user's Preferences as the user's preferred ComplexMode. |
java.lang.String |
toString()
Returns a java.lang.String describing this ComplexMode. |
static ComplexMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ComplexMode[] |
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 ComplexMode REAL
public static final ComplexMode IMAGINARY
public static final ComplexMode MAGNITUDE
public static final ComplexMode PHASE
| Field Detail |
|---|
public static final ComplexMode DEFAULT_COMPLEX_MODE
| Method Detail |
|---|
public static ComplexMode[] values()
for (ComplexMode c : ComplexMode.values()) System.out.println(c);
public static ComplexMode 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 ComplexMode getPreferredMode(java.util.prefs.Preferences prefs)
prefs - the Preferences from which the ComplexMode is to be retrieved.
public static void savePreferences(ComplexMode mode,
java.util.prefs.Preferences prefs)
mode - the ComplexMode that the user most often works with, and which will be
set as the default to use when this Class loads.
public static ComplexMode getInstance(java.lang.String modeString)
throws java.lang.IllegalArgumentException
modeString - a java.lang.String describing the ComplexMode. One of:
java.lang.IllegalArgumentException - if the modeString is invalid.public java.lang.String toString()
toString in class java.lang.Enum<ComplexMode>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||