public enum Motion extends java.lang.Enum<Motion>
+-----------------------→ +x
| d b
| | *
| | * *
| | * *
| | * *
| |* *
| **********
| a c
|
v
+y
Traveling in a straight-line between a and b (that is, tracing the hypotenuse) is
DIRECT. Traveling first from a to c and then from c to b is HORIZONTAL_FIRST.
Traveling first from a to d and then from d to b is VERTICAL_FIRST. DIRECT
means that no specific type of motion was explicitly requested.
| Enum Constant and Description |
|---|
DEFAULT |
DIRECT |
HORIZONTAL_FIRST |
VERTICAL_FIRST |
| Modifier and Type | Method and Description |
|---|---|
static Motion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Motion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Motion DEFAULT
public static final Motion DIRECT
public static final Motion HORIZONTAL_FIRST
public static final Motion VERTICAL_FIRST
public static Motion[] values()
for (Motion c : Motion.values()) System.out.println(c);
public static Motion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null