| Constructor and Description |
|---|
DragRobotImpl(MouseRobot mouseRobot,
MoveRobot moveRobot) |
| Modifier and Type | Method and Description |
|---|---|
void |
drag(javafx.scene.input.MouseButton... buttons)
Presses the given mouse button(s) on whatever is under the mouse's current location.
|
void |
drag(PointQuery pointQuery,
javafx.scene.input.MouseButton... buttons)
Moves the mouse to the location specified by the given
PointQuery.query() and then presses the
given mouse button(s) on whatever is under the mouse's new location. |
void |
drop()
Releases the mouse at its' 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 the location specified by the given
PointQuery.query() and then
releases the mouse. |
public DragRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot)
public void drag(javafx.scene.input.MouseButton... buttons)
DragRobotpublic void drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
DragRobotPointQuery.query() and then presses the
given mouse button(s) on whatever is under the mouse's new location.public void drop()
DragRobotpublic void dropTo(PointQuery pointQuery)
DragRobotPointQuery.query() and then
releases the mouse.public void dropBy(double x,
double y)
DragRobotx and vertically by y before releasing the mouse.