Enum ControlPosition
- All Implemented Interfaces:
Serializable,Comparable<ControlPosition>,java.lang.constant.Constable
Enum representing supported control positions for map control buttons.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the control should be placed along the bottom center of the map.Indicates that the control should be placed along the bottom left of the map, with any sub-elements of the control "flowing" towards the bottom center.Indicates that the control should be placed along the bottom right of the map, with any sub-elements of the control "flowing" towards the bottom center.Indicates that the control should be placed along the bottom left of the map, but above any BOTTOM_LEFT elements.Indicates that the control should be placed along the left side of the map, centered between the TOP_LEFT and BOTTOM_LEFT positionsIndicates that the control should be placed along the top left of the map, but below any TOP_LEFT elements.Indicates that the control should be placed along the bottom right of the map, but above any BOTTOM_RIGHT elements.Indicates that the control should be placed along the right side of the map, centered between the TOP_RIGHT and BOTTOM_RIGHT positions.Indicates that the control should be placed along the top right of the map, but below any TOP_RIGHT elements.Indicates that the control should be placed along the top center of the map.Indicates that the control should be placed along the top left of the map, with any sub-elements of the control "flowing" towards the top center.Indicates that the control should be placed along the top right of the map, with any sub-elements of the control "flowing" towards the top center. -
Method Summary
Modifier and TypeMethodDescriptionstatic ControlPositionReturns the enum constant of this type with the specified name.static ControlPosition[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TOP_CENTER
Indicates that the control should be placed along the top center of the map. -
TOP_LEFT
Indicates that the control should be placed along the top left of the map, with any sub-elements of the control "flowing" towards the top center. -
TOP_RIGHT
Indicates that the control should be placed along the top right of the map, with any sub-elements of the control "flowing" towards the top center. -
LEFT_TOP
Indicates that the control should be placed along the top left of the map, but below any TOP_LEFT elements. -
RIGHT_TOP
Indicates that the control should be placed along the top right of the map, but below any TOP_RIGHT elements. -
LEFT_CENTER
Indicates that the control should be placed along the left side of the map, centered between the TOP_LEFT and BOTTOM_LEFT positions -
RIGHT_CENTER
Indicates that the control should be placed along the right side of the map, centered between the TOP_RIGHT and BOTTOM_RIGHT positions. -
LEFT_BOTTOM
Indicates that the control should be placed along the bottom left of the map, but above any BOTTOM_LEFT elements. -
RIGHT_BOTTOM
Indicates that the control should be placed along the bottom right of the map, but above any BOTTOM_RIGHT elements. -
BOTTOM_CENTER
Indicates that the control should be placed along the bottom center of the map. -
BOTTOM_LEFT
Indicates that the control should be placed along the bottom left of the map, with any sub-elements of the control "flowing" towards the bottom center. -
BOTTOM_RIGHT
Indicates that the control should be placed along the bottom right of the map, with any sub-elements of the control "flowing" towards the bottom center.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-