Enum Class ComponentPositionPreference
java.lang.Object
java.lang.Enum<ComponentPositionPreference>
io.github.astrapi69.awt.screen.position.ComponentPositionPreference
- All Implemented Interfaces:
Serializable
,Comparable<ComponentPositionPreference>
,Constable
The enum
ComponentPositionPreference
holds the key suffixes that will be saved in the
preferences and the default with and height-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe enum for the height window position key for the preferenceThe enum for the width window position key for the preferenceThe enum for the X position window position key for the preferenceThe enum for the Y position window position key for the preference -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The constant for the default heightstatic final int
The constant for the default width -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentPositionPreference
Returns the enum constant of this class with the specified name.static ComponentPositionPreference[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WIDTH
The enum for the width window position key for the preference -
HEIGHT
The enum for the height window position key for the preference -
X_POSITION
The enum for the X position window position key for the preference -
Y_POSITION
The enum for the Y position window position key for the preference
-
-
Field Details
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTHThe constant for the default width- See Also:
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHTThe constant for the default height- 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
-