-
- All Known Implementing Classes:
DragRobotImpl
public interface DragRobot
-
-
Method Summary
Modifier and Type Method 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 givenPointQuery.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 byx
and vertically byy
before releasing the mouse.void
dropTo(PointQuery pointQuery)
Moves the mouse to the location specified by the givenPointQuery.query()
and then releases the mouse.
-
-
-
Method Detail
-
drag
void drag(javafx.scene.input.MouseButton... buttons)
Presses the given mouse button(s) on whatever is under the mouse's current location.- Parameters:
buttons
- the mouse buttons to press
-
drag
void drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
Moves the mouse to the location specified by the givenPointQuery.query()
and then presses the given mouse button(s) on whatever is under the mouse's new location.- Parameters:
pointQuery
- the pointQuery that specifies where to move the mouse tobuttons
- the mouse buttons to press
-
drop
void drop()
Releases the mouse at its' current position.
-
dropTo
void dropTo(PointQuery pointQuery)
Moves the mouse to the location specified by the givenPointQuery.query()
and then releases the mouse.- Parameters:
pointQuery
- the pointQuery that specifies where to move the mouse to
-
dropBy
void dropBy(double x, double y)
Moves the mouse horizontally byx
and vertically byy
before releasing the mouse.- Parameters:
x
- the amount by which to move the mouse horizontallyy
- the amount by which to move the mouse vertically
-
-