-
- All Known Implementing Classes:
MoveRobotImpl
public interface MoveRobot
-
-
Method Summary
Modifier and Type Method Description default void
moveBy(double x, double y)
Moves the mouse directly (see:Motion.DIRECT
from the current location to the given (x
,y
) location.void
moveBy(double x, double y, Motion motion)
Moves the mouse from the current location to the given (x
,y
) location.default void
moveTo(PointQuery pointQuery)
Moves the mouse directly to the (x,y) position specified by the givenPointQuery.query()
.void
moveTo(PointQuery pointQuery, Motion motion)
Moves the mouse to the (x,y) position specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
) and clicks whatever is under it.
-
-
-
Method Detail
-
moveTo
default void moveTo(PointQuery pointQuery)
Moves the mouse directly to the (x,y) position specified by the givenPointQuery.query()
.- Parameters:
pointQuery
- the pointQuery to move to
-
moveTo
void moveTo(PointQuery pointQuery, Motion motion)
Moves the mouse to the (x,y) position specified by the givenPointQuery.query()
using the specifiedmotion
(see:Motion
) and clicks whatever is under it.- Parameters:
pointQuery
- the pointQuery to move tomotion
- the type of motion to use for movement
-
moveBy
default void moveBy(double x, double y)
Moves the mouse directly (see:Motion.DIRECT
from the current location to the given (x
,y
) location.- Parameters:
x
- the amount by which to directly move the mouse horizontallyy
- the amount by which to directly move the mouse vertically
-
moveBy
void moveBy(double x, double y, Motion motion)
Moves the mouse from the current location to the given (x
,y
) location. The movement is done using the givenMotion
.- Parameters:
x
- the amount by which to move the mouse horizontallyy
- the amount by which to move the mouse verticallymotion
- the type of motion to use for movement
-
-