public final class DragTracker extends Object
Constructor and Description |
---|
DragTracker() |
Modifier and Type | Method and Description |
---|---|
boolean |
addSlot(boolean right,
int slot)
Add a slot to an in-progress drag operation if possible.
|
List<Integer> |
finish(boolean right)
Finish an in-progress drag operation if possible.
|
void |
reset()
Reset back to the default state (no drag in progress).
|
boolean |
start(boolean right)
Start tracking a drag operation if possible.
|
public boolean start(boolean right)
right
- True if the drag is a right-click drag.public boolean addSlot(boolean right, int slot)
right
- True if the drag is a right-click drag.slot
- The slot to add to the drag operation.public List<Integer> finish(boolean right)
right
- True if the drag is a right-click drag.public void reset()
Copyright © 2021. All rights reserved.