Package org.testfx.robot.impl
Class ScrollRobotImpl
java.lang.Object
org.testfx.robot.impl.ScrollRobotImpl
- All Implemented Interfaces:
ScrollRobot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MouseRobot
private static final int
private static final int
-
Constructor Summary
Constructors -
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).
-
Field Details
-
SCROLL_ONE_UP_OR_LEFT
private static final int SCROLL_ONE_UP_OR_LEFT- See Also:
-
SCROLL_ONE_DOWN_OR_RIGHT
private static final int SCROLL_ONE_DOWN_OR_RIGHT- See Also:
-
mouseRobot
-
-
Constructor Details
-
ScrollRobotImpl
-
-
Method Details
-
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
-