Package com.xinapse.image.template
Enum Class WeightingType
- All Implemented Interfaces:
Serializable
,Comparable<WeightingType>
,Constable
An enumeration of MR image intensity weighting types.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A JPanel for selecting a WeightingType.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final WeightingType
The default WeightingType for applications.static final org.apache.commons.cli.Option
The Option for selecting a WeightingType. -
Method Summary
Modifier and TypeMethodDescriptionReturns a string describing this image weighting type.Returns a "full" description of this WeightingType.static WeightingType
getInstance
(String typeString) Returns a WeightingType Object corresponding to the supplied String.static WeightingType
Gets the WeightingType set in the preferences.static void
Runs the self-test for WeightingType.static void
savePreferredWeightingType
(Preferences prefs, WeightingType type) Saves the WeightingType to the preferences.static WeightingType
Returns the enum constant of this class with the specified name.static WeightingType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
T1
An image weighting type of T1-weighted. -
T2
An image weighting type of T2-weighted. -
PD
An image weighting type of proton density weighted.
-
-
Field Details
-
DEFAULT
The default WeightingType for applications. -
OPTION
public static final org.apache.commons.cli.Option OPTIONThe Option for selecting a WeightingType.
-
-
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
-
getInstance
Returns a WeightingType Object corresponding to the supplied String.- Parameters:
typeString
- a String which indicates the weighting type.- Returns:
- a WeightingType Object corresponding to the supplied String.
- Throws:
InvalidArgumentException
- if the supplied String does not correspond to any of theWeightingType
s.
-
getDescription
Returns a string describing this image weighting type.- Returns:
- a string describing this image weighting type.
-
getFullDescription
Returns a "full" description of this WeightingType.- Returns:
- a "full" description of this WeightingType.
-
getPreferredWeightingType
Gets the WeightingType set in the preferences.- Parameters:
prefs
- the preferences.- Returns:
- the WeightingType set in the preferences.
-
savePreferredWeightingType
Saves the WeightingType to the preferences.- Parameters:
type
- the WeightingType.prefs
- the preferences.
-
main
Runs the self-test for WeightingType.- Parameters:
args
- ignored.
-