public interface DragRobot
Modifier and Type | Method and Description |
---|---|
void |
drag(MouseButton... buttons)
Presses the given mouse button(s) on whatever is under the mouse's current location.
|
void |
drag(PointQuery pointQuery,
MouseButton... buttons)
Moves the mouse to
PointQuery.query() before presses the given mouse button(s) on whatever is under
the mouse's new location. |
void |
drop()
Releases the mouse at current position.
|
void |
dropBy(double x,
double y)
Moves the mouse horizontally by
x and vertically by y before releasing the mouse. |
void |
dropTo(PointQuery pointQuery)
Moves the mouse to
PointQuery.query() before releasing the mouse. |
void drag(MouseButton... buttons)
buttons
- the mouse buttons to pressvoid drag(PointQuery pointQuery, MouseButton... buttons)
PointQuery.query()
before presses the given mouse button(s) on whatever is under
the mouse's new location.pointQuery
- the pointQuerybuttons
- the mouse buttons to pressvoid drop()
void dropTo(PointQuery pointQuery)
PointQuery.query()
before releasing the mouse.pointQuery
- the pointQueryvoid dropBy(double x, double y)
x
and vertically by y
before releasing the mouse.x
- the amount by which to move the mouse horizontallyy
- the amount by which to move the mouse vertically