Package org.testfx.robot.impl
Class DragRobotImpl
- java.lang.Object
-
- org.testfx.robot.impl.DragRobotImpl
-
-
Field Summary
Fields Modifier and Type Field Description private MouseRobotmouseRobotprivate MoveRobotmoveRobot
-
Constructor Summary
Constructors Constructor Description DragRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddrag(javafx.scene.input.MouseButton... buttons)Presses the given mouse button(s) on whatever is under the mouse's current location.voiddrag(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.voiddrop()Releases the mouse at its' current position.voiddropBy(double x, double y)Moves the mouse horizontally byxand vertically byybefore releasing the mouse.voiddropTo(PointQuery pointQuery)Moves the mouse to the location specified by the givenPointQuery.query()and then releases the mouse.
-
-
-
Field Detail
-
mouseRobot
private final MouseRobot mouseRobot
-
moveRobot
private final MoveRobot moveRobot
-
-
Constructor Detail
-
DragRobotImpl
public DragRobotImpl(MouseRobot mouseRobot, MoveRobot moveRobot)
-
-
Method Detail
-
drag
public void drag(javafx.scene.input.MouseButton... buttons)
Description copied from interface:DragRobotPresses the given mouse button(s) on whatever is under the mouse's current location.
-
drag
public void drag(PointQuery pointQuery, javafx.scene.input.MouseButton... buttons)
Description copied from interface:DragRobotMoves 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.
-
drop
public void drop()
Description copied from interface:DragRobotReleases the mouse at its' current position.
-
dropTo
public void dropTo(PointQuery pointQuery)
Description copied from interface:DragRobotMoves the mouse to the location specified by the givenPointQuery.query()and then releases the mouse.
-
dropBy
public void dropBy(double x, double y)Description copied from interface:DragRobotMoves the mouse horizontally byxand vertically byybefore releasing the mouse.
-
-