public enum DragDirection extends Enum<DragDirection>
Details:
This class enumerates the four directions the mouse can be dragged in a one-
Modifier and Type | Method and Description |
---|---|
static DragDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DragDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DragDirection UP
public static final DragDirection DOWN
public static final DragDirection LEFT
public static final DragDirection RIGHT
public static DragDirection[] values()
for (DragDirection c : DragDirection.values()) System.out.println(c);
public static DragDirection 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 © 2013. All Rights Reserved.