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)
Get the button from the given button and dragging state.
|
static DraggingState |
getDraggingState(int buttonAndDragState)
Get the dragging state from the given button and dragging state.
|
static boolean |
isDragging(int button)
Check if the button can be used for dragging.
|
static int |
setDraggingState(DraggingState draggingState,
int button)
Append the dragging state to the given 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)
buttonAndDragState - The button and dragging statepublic static DraggingState getDraggingState(int buttonAndDragState)
buttonAndDragState - The button and dragging statepublic static int setDraggingState(DraggingState draggingState, int button)
draggingState - The dragging statebutton - The buttonpublic static boolean isDragging(int button)
button - The button