Package docking.widgets.shapes
Enum Class Location
- All Implemented Interfaces:
Serializable
,Comparable<Location>
,Constable
Specifies location and metrics for
PopupWindowPlacer
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isCenter()
boolean
boolean
boolean
isLesser()
boolean
match()
boolean
validMinor
(Location minor) Assumes "this" is a major axis, and tells whether the minor axis argument is valid for the major value.static Location
Returns the enum constant of this class with the specified name.static Location[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
-
RIGHT
-
TOP
-
BOTTOM
-
CENTER
-
-
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
-
isGreater
public boolean isGreater() -
isLesser
public boolean isLesser() -
isCenter
public boolean isCenter() -
match
-
clockwise
-
counterClockwise
-
validMinor
Assumes "this" is a major axis, and tells whether the minor axis argument is valid for the major value. Cannot have both major and minor be the same horizontal/vertical bearing. Note thatCENTER
can be horizontal or vertical, so this method should not count this value as a bad minor value, as it also represents a good value.- Parameters:
minor
- the minor value to check- Returns:
- true if valid.
-
isHorizontal
public boolean isHorizontal() -
isVertical
public boolean isVertical()
-