Package org.testfx.robot
Interface ScrollRobot
- All Known Implementing Classes:
ScrollRobotImpl
public interface ScrollRobot
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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).
-
Method Details
-
scroll
void scroll(int amount) Scrolls vertically byamount
(in terms of ticks of a mouse wheel). Ifamount
is positive we scroll up, if it's negative we scroll down.- Parameters:
amount
- the number of scroll ticks to scroll
-
scroll
void scroll(int positiveAmount, javafx.geometry.VerticalDirection direction) Scrolls vertically byamount
(in terms of ticks of a mouse wheel) in given direction.- Parameters:
positiveAmount
- the number of scroll ticks to scroll verticallydirection
- the vertical direction in which to scroll (up or down)
-
scrollUp
void scrollUp(int positiveAmount) Scrolls up byamount
(in terms of ticks of a mouse wheel).- Parameters:
positiveAmount
- the number of scroll ticks to scroll up
-
scrollDown
void scrollDown(int positiveAmount) Scrolls down byamount
(in terms of ticks of a wheel).- Parameters:
positiveAmount
- the number of scroll ticks to scroll down
-
scroll
void scroll(int positiveAmount, javafx.geometry.HorizontalDirection direction) Scrolls horizontally byamount
(in terms of ticks of a mouse wheel) in given direction.- Parameters:
positiveAmount
- the number of scroll ticks to scroll horizontallydirection
- the horizontal direction in which to scroll (left or right)
-
scrollLeft
void scrollLeft(int positiveAmount) Scrolls left byamount
(in terms of ticks of a wheel).- Parameters:
positiveAmount
- the number of scroll ticks to scroll left
-
scrollRight
void scrollRight(int positiveAmount) Scrolls right byamount
(in terms of ticks of a wheel).- Parameters:
positiveAmount
- the number of scroll ticks to scroll right
-