Modifier and Type | Field and Description |
---|---|
MouseRobot |
mouseRobot |
MoveRobot |
moveRobot |
Constructor and Description |
---|
DragRobotImpl(MouseRobot mouseRobot,
MoveRobot moveRobot) |
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. |
public MouseRobot mouseRobot
public MoveRobot moveRobot
public DragRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot)
public void drag(MouseButton... buttons)
DragRobot
public void drag(PointQuery pointQuery, MouseButton... buttons)
DragRobot
PointQuery.query()
before presses the given mouse button(s) on whatever is under
the mouse's new location.public void drop()
DragRobot
public void dropTo(PointQuery pointQuery)
DragRobot
PointQuery.query()
before releasing the mouse.public void dropBy(double x, double y)
DragRobot
x
and vertically by y
before releasing the mouse.