Package com.xinapse.dicom
Enum Class PulseSequenceType
- All Implemented Interfaces:
Serializable
,Comparable<PulseSequenceType>
,Constable
An enumeration of DICOM pulse sequence types.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A javax.swing.JComboBox that is used for selecting a PulseSequenceType.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The Preference name for the PulseSequenceType. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Returns whether the user prefers always to be asked to set the PulseSequenceType.Returns a description of the pulse-sequence type.static PulseSequenceType
getInstance
(String typeName) Returns the PulseSequenceType corresponding to the supplied String.static PulseSequenceType
Returns the user's preferred PulseSequenceType set in the user Preferences.static void
Run the unit test on thePulseSequenceType
class.static void
saveAlwaysAsk
(boolean always) Saves whether the user prefers always to be asked to set the PulseSequenceType.static void
savePreferredType
(PulseSequenceType seqType) Saves the user's preferred PulseSequenceType to the user Preferences.static PulseSequenceType
Returns the enum constant of this class with the specified name.static PulseSequenceType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SE
Spin-echo pulse sequence type. -
IR
Inversion-recovery pulse sequence type. -
DIR
Double inversion-recovery pulse sequence type. -
GR
Gradient-echo pulse sequence type. -
EP
Echo-planar pulse sequence type. -
RM
Research mode pulse sequence type.
-
-
Field Details
-
PULSE_SEQUENCE_TYPE_PREFERENCE_NAME
The Preference name for the PulseSequenceType.- See Also:
-
-
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 the PulseSequenceType corresponding to the supplied String.- Parameters:
typeName
- the pulse sequence type name. Case is ignored. Returns a default PulseSequenceType if the typeName is not recognised.- Returns:
- the
PulseSequenceType
corresponding to the suppliedString
.
-
getDescription
Returns a description of the pulse-sequence type.- Returns:
- a description of the pulse-sequence type.
-
getPreferredType
Returns the user's preferred PulseSequenceType set in the user Preferences.- Returns:
- the user's preferred PulseSequenceType.
-
savePreferredType
Saves the user's preferred PulseSequenceType to the user Preferences.- Parameters:
seqType
- the user's preferred PulseSequenceType.
-
getAlwaysAsk
public static boolean getAlwaysAsk()Returns whether the user prefers always to be asked to set the PulseSequenceType.- Returns:
- the user's preference for whether always to be asked to set the PulseSequenceType.
-
saveAlwaysAsk
public static void saveAlwaysAsk(boolean always) Saves whether the user prefers always to be asked to set the PulseSequenceType.- Parameters:
always
- the user's preference for whether always to be asked to set the PulseSequenceType.
-
main
Run the unit test on thePulseSequenceType
class.- Parameters:
args
- ignored.
-