public enum BoxOrientation extends Enum<BoxOrientation> implements SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Modifier and Type | Method and Description |
|---|---|
static BoxOrientation |
get(int value)
Returns enumeration literal referencing constant value.
|
int |
getValue()
Returns constant value.
|
boolean |
isBottom()
Returns whether or not this is a
bottom literal. |
boolean |
isCenter()
Returns whether or not this is a
center literal. |
boolean |
isLeft()
Returns whether or not this is a
left literal. |
boolean |
isRight()
Returns whether or not this is a
right literal. |
boolean |
isTop()
Returns whether or not this is a
top literal. |
static BoxOrientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BoxOrientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BoxOrientation center
public static final BoxOrientation top
public static final BoxOrientation left
public static final BoxOrientation bottom
public static final BoxOrientation right
public static BoxOrientation[] values()
for (BoxOrientation c : BoxOrientation.values()) System.out.println(c);
public static BoxOrientation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
public boolean isCenter()
center literal.true if this is a center literal, false otherwisepublic boolean isTop()
top literal.true if this is a top literal, false otherwisepublic boolean isLeft()
left literal.true if this is a left literal, false otherwisepublic boolean isBottom()
bottom literal.true if this is a bottom literal, false otherwisepublic boolean isRight()
right literal.true if this is a right literal, false otherwise@NotNull public static BoxOrientation get(int value)
value - constant valueCopyright © 2020. All rights reserved.