- java.lang.Object
-
- org.testfx.robot.impl.ScrollRobotImpl
-
- All Implemented Interfaces:
ScrollRobot
public class ScrollRobotImpl extends Object implements ScrollRobot
-
-
Constructor Summary
Constructors Constructor Description ScrollRobotImpl(MouseRobot mouseRobot)
-
Method Summary
Modifier and Type Method Description void
scroll(int amount)
Scrolls vertically byamount
(in terms of ticks of a mouse wheel).void
scroll(int positiveAmount, javafx.geometry.HorizontalDirection direction)
Scrolls horizontally byamount
(in terms of ticks of a mouse wheel) in given direction.void
scroll(int positiveAmount, javafx.geometry.VerticalDirection direction)
Scrolls vertically byamount
(in terms of ticks of a mouse wheel) in given direction.void
scrollDown(int positiveAmount)
Scrolls down byamount
(in terms of ticks of a wheel).void
scrollLeft(int positiveAmount)
Scrolls left byamount
(in terms of ticks of a wheel).void
scrollRight(int positiveAmount)
Scrolls right byamount
(in terms of ticks of a wheel).void
scrollUp(int positiveAmount)
Scrolls up byamount
(in terms of ticks of a mouse wheel).
-
-
-
Constructor Detail
-
ScrollRobotImpl
public ScrollRobotImpl(MouseRobot mouseRobot)
-
-
Method Detail
-
scroll
public void scroll(int amount)
Description copied from interface:ScrollRobot
Scrolls vertically byamount
(in terms of ticks of a mouse wheel). Ifamount
is positive we scroll up, if it's negative we scroll down.- Specified by:
scroll
in interfaceScrollRobot
- Parameters:
amount
- the number of scroll ticks to scroll
-
scroll
public void scroll(int positiveAmount, javafx.geometry.VerticalDirection direction)
Description copied from interface:ScrollRobot
Scrolls vertically byamount
(in terms of ticks of a mouse wheel) in given direction.- Specified by:
scroll
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll verticallydirection
- the vertical direction in which to scroll (up or down)
-
scrollUp
public void scrollUp(int positiveAmount)
Description copied from interface:ScrollRobot
Scrolls up byamount
(in terms of ticks of a mouse wheel).- Specified by:
scrollUp
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll up
-
scrollDown
public void scrollDown(int positiveAmount)
Description copied from interface:ScrollRobot
Scrolls down byamount
(in terms of ticks of a wheel).- Specified by:
scrollDown
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll down
-
scroll
public void scroll(int positiveAmount, javafx.geometry.HorizontalDirection direction)
Description copied from interface:ScrollRobot
Scrolls horizontally byamount
(in terms of ticks of a mouse wheel) in given direction.- Specified by:
scroll
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll horizontallydirection
- the horizontal direction in which to scroll (left or right)
-
scrollRight
public void scrollRight(int positiveAmount)
Description copied from interface:ScrollRobot
Scrolls right byamount
(in terms of ticks of a wheel).- Specified by:
scrollRight
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll right
-
scrollLeft
public void scrollLeft(int positiveAmount)
Description copied from interface:ScrollRobot
Scrolls left byamount
(in terms of ticks of a wheel).- Specified by:
scrollLeft
in interfaceScrollRobot
- Parameters:
positiveAmount
- the number of scroll ticks to scroll left
-
-