Package com.xinapse.image
Enum Class InputConfigurationType
- All Implemented Interfaces:
Serializable
,Comparable<InputConfigurationType>
,Constable
The types of input image configuration: either a single input image, or multiple input images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe InputConfigurationType corresponding to multiple input images.The InputConfigurationType corresponding to a single input image. -
Field Summary
Modifier and TypeFieldDescriptionstatic final InputConfigurationType
The default InputConfigurationType. -
Method Summary
Modifier and TypeMethodDescriptionstatic InputConfigurationType
Returns an InputConfigurationType Object corresponding to a string.static InputConfigurationType
Returns the user's preferred InputConfigurationType.static void
savePreferences
(InputConfigurationType preferredType, Preferences prefs) Save the input configuration to the Preferences.toString()
Returns a String describing this InputConfigurationType.static InputConfigurationType
Returns the enum constant of this class with the specified name.static InputConfigurationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SINGLE_INPUT_IMAGE
The InputConfigurationType corresponding to a single input image. -
MULTIPLE_INPUT_IMAGES
The InputConfigurationType corresponding to multiple input images.
-
-
Field Details
-
DEFAULT
The default InputConfigurationType.
-
-
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 an InputConfigurationType Object corresponding to a string.- Parameters:
s
- a String from which the configuration type will be interpreted. Can be:- "single",
- "multiple",
- Returns:
- an InputConfigurationType Object corresponding to a String.
- Throws:
InvalidArgumentException
- if the string is invalid.
-
getPreferredInputConfigurationType
Returns the user's preferred InputConfigurationType.- Parameters:
prefs
- the Preferences in which to search.- Returns:
- the user's preferred InputConfigurationType set in the Preferences, or the default if not set in the Preferences.
-
savePreferences
Save the input configuration to the Preferences.- Parameters:
preferredType
- the user's preferred InputConfigurationType.prefs
- the Preferences into which to save.
-
toString
Returns a String describing this InputConfigurationType.- Overrides:
toString
in classEnum<InputConfigurationType>
- Returns:
- a String describing this InputConfigurationType.
-