public enum DraggingState extends java.lang.Enum<DraggingState>
| Enum Constant and Description |
|---|
DRAGGING |
FINISHED_DRAGGING |
INVALID |
NOT_DRAGGING |
| Modifier and Type | Method and Description |
|---|---|
static int |
getButton(int buttonAndDragState) |
static DraggingState |
getDraggingState(int buttonAndDragState) |
static boolean |
isDragging(int button) |
static int |
setDraggingState(DraggingState draggingState,
int button) |
static DraggingState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DraggingState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DraggingState NOT_DRAGGING
public static final DraggingState DRAGGING
public static final DraggingState FINISHED_DRAGGING
public static final DraggingState INVALID
public static DraggingState[] values()
for (DraggingState c : DraggingState.values()) System.out.println(c);
public static DraggingState 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 nullpublic static int getButton(int buttonAndDragState)
public static DraggingState getDraggingState(int buttonAndDragState)
public static int setDraggingState(DraggingState draggingState, int button)
public static boolean isDragging(int button)