@Unstable public class ClickRobotImpl extends Object implements ClickRobot
Modifier and Type | Field and Description |
---|---|
MouseRobot |
mouseRobot |
MoveRobot |
moveRobot |
SleepRobot |
sleepRobot |
Constructor and Description |
---|
ClickRobotImpl(MouseRobot mouseRobot,
MoveRobot moveRobot,
SleepRobot sleepRobot) |
Modifier and Type | Method and Description |
---|---|
void |
clickOn(MouseButton... buttons)
Clicks whatever is under the mouse.
|
void |
clickOn(PointQuery pointQuery,
Motion motion,
MouseButton... buttons)
Moves mouse to
PointQuery.query() using the specified motion
(see: Motion ) and clicks whatever is under it. |
void |
doubleClickOn(MouseButton... buttons)
Double-clicks whatever is under the mouse.
|
void |
doubleClickOn(PointQuery pointQuery,
Motion motion,
MouseButton... buttons)
Moves mouse to
PointQuery.query() using the specified motion
(see: Motion and double-clicks whatever is under it. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clickOn, doubleClickOn
public MouseRobot mouseRobot
public MoveRobot moveRobot
public SleepRobot sleepRobot
public ClickRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot, SleepRobot sleepRobot)
public void clickOn(MouseButton... buttons)
ClickRobot
clickOn
in interface ClickRobot
buttons
- the mouse buttons to clickpublic void clickOn(PointQuery pointQuery, Motion motion, MouseButton... buttons)
ClickRobot
PointQuery.query()
using the specified motion
(see: Motion
) and clicks whatever is under it.clickOn
in interface ClickRobot
pointQuery
- the pointQuerymotion
- the type of motion to use for movementbuttons
- the mouse buttons to clickpublic void doubleClickOn(MouseButton... buttons)
ClickRobot
doubleClickOn
in interface ClickRobot
buttons
- the mouse buttons to clickpublic void doubleClickOn(PointQuery pointQuery, Motion motion, MouseButton... buttons)
ClickRobot
PointQuery.query()
using the specified motion
(see: Motion
and double-clicks whatever is under it.doubleClickOn
in interface ClickRobot
pointQuery
- the pointQuerymotion
- the type of motion to use for movementbuttons
- the mouse buttons to click