public class ScrollRobotImpl extends java.lang.Object implements ScrollRobot
| Constructor and Description |
|---|
ScrollRobotImpl(MouseRobot mouseRobot) |
| Modifier and Type | Method and Description |
|---|---|
void |
scroll(int amount)
Scrolls vertically by
amount (in terms of ticks of a mouse wheel). |
void |
scroll(int positiveAmount,
javafx.geometry.HorizontalDirection direction)
Scrolls horizontally by
amount (in terms of ticks of a mouse wheel) in given direction. |
void |
scroll(int positiveAmount,
javafx.geometry.VerticalDirection direction)
Scrolls vertically by
amount (in terms of ticks of a mouse wheel) in given direction. |
void |
scrollDown(int positiveAmount)
Scrolls down by
amount (in terms of ticks of a wheel). |
void |
scrollLeft(int positiveAmount)
Scrolls left by
amount (in terms of ticks of a wheel). |
void |
scrollRight(int positiveAmount)
Scrolls right by
amount (in terms of ticks of a wheel). |
void |
scrollUp(int positiveAmount)
Scrolls up by
amount (in terms of ticks of a mouse wheel). |
public ScrollRobotImpl(MouseRobot mouseRobot)
public void scroll(int amount)
ScrollRobotamount (in terms of ticks of a mouse wheel). If
amount is positive we scroll up, if it's negative we scroll down.scroll in interface ScrollRobotamount - the number of scroll ticks to scrollpublic void scroll(int positiveAmount,
javafx.geometry.VerticalDirection direction)
ScrollRobotamount (in terms of ticks of a mouse wheel) in given direction.scroll in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll verticallydirection - the vertical direction in which to scroll (up or down)public void scrollUp(int positiveAmount)
ScrollRobotamount (in terms of ticks of a mouse wheel).scrollUp in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll uppublic void scrollDown(int positiveAmount)
ScrollRobotamount (in terms of ticks of a wheel).scrollDown in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll downpublic void scroll(int positiveAmount,
javafx.geometry.HorizontalDirection direction)
ScrollRobotamount (in terms of ticks of a mouse wheel) in given direction.scroll in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll horizontallydirection - the horizontal direction in which to scroll (left or right)public void scrollRight(int positiveAmount)
ScrollRobotamount (in terms of ticks of a wheel).scrollRight in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll rightpublic void scrollLeft(int positiveAmount)
ScrollRobotamount (in terms of ticks of a wheel).scrollLeft in interface ScrollRobotpositiveAmount - the number of scroll ticks to scroll left