public enum Orientation extends Enum<Orientation> implements SwingConstants
| Enum Constant and Description |
|---|
horizontal
Horizontal orientation.
|
vertical
Vertical orientation.
|
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 Orientation |
get(int value)
Returns enumeration literal referencing constant value.
|
int |
getValue()
Returns constant value.
|
boolean |
isHorizontal()
Returns whether or not orientation is horizontal.
|
boolean |
isVertical()
Returns whether or not orientation is vertical.
|
Orientation |
opposite()
Returns
Orientation opposite to this one. |
static Orientation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Orientation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Orientation horizontal
SwingConstants.HORIZONTALpublic static final Orientation vertical
SwingConstants.VERTICALpublic static Orientation[] values()
for (Orientation c : Orientation.values()) System.out.println(c);
public static Orientation 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 Orientation opposite()
Orientation opposite to this one.Orientation opposite to this onepublic int getValue()
public boolean isHorizontal()
public boolean isVertical()
public static Orientation get(int value)
value - constant valueCopyright © 2020. All rights reserved.