Serializable
, Comparable<Direction>
public enum Direction extends Enum<Direction>
LinearLayout
and
Separator
.Enum Constant | Description |
---|---|
HORIZONTAL |
Horizontal direction, meaning something is moving along the x-axis (or column-axis)
|
VERTICAL |
Vertical directory, meaning something is moving along the y-axis (or row-axis)
|
Modifier and Type | Method | Description |
---|---|---|
static Direction |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction HORIZONTAL
public static final Direction VERTICAL
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 nullCopyright © 2020. All rights reserved.