Package com.install4j.api.beans
Enum Class Anchor
- All Implemented Interfaces:
Serializable
,Comparable<Anchor>
,Constable
Property type for an anchor.
-
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 TypeMethodDescriptionstatic Anchor
getByValue
(int value) Get the anchor constant that corresponds to the specified valueint
getValue()
The value of the anchor which can be used byjava.awt.GridBagLayout
.boolean
isCorner()
If the anchor is a corner.toString()
static Anchor
Returns the enum constant of this class with the specified name.static Anchor[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORTHWEST
-
NORTH
-
NORTHEAST
-
WEST
-
CENTER
-
EAST
-
SOUTHWEST
-
SOUTH
-
SOUTHEAST
-
-
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
-
getByValue
Get the anchor constant that corresponds to the specified value- Parameters:
value
- the value, as returned bygetValue()
- Returns:
- the anchor or
null
if the value cannot be found - See Also:
-
isCorner
public boolean isCorner()If the anchor is a corner.- Returns:
- the value
-
getValue
public int getValue()The value of the anchor which can be used byjava.awt.GridBagLayout
.- Returns:
- the value, one of the anchor constants in
java.awt.GridBagConstraints
-
toString
-