@Unstable public class ScrollRobotImpl extends Object implements ScrollRobot
Modifier and Type | Field and Description |
---|---|
MouseRobot |
mouseRobot |
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): if
amount >= 0 , up; otherwise, down. |
void |
scroll(int positiveAmount,
HorizontalDirection direction)
Scrolls horizontally by amount (in terms of ticks of a mouse wheel) in given direction.
|
void |
scroll(int positiveAmount,
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 MouseRobot mouseRobot
public ScrollRobotImpl(MouseRobot mouseRobot)
public void scroll(int amount)
ScrollRobot
amount >= 0
, up; otherwise, down.scroll
in interface ScrollRobot
amount
- of a mouse wheel's scroll tickspublic void scroll(int positiveAmount, VerticalDirection direction)
ScrollRobot
scroll
in interface ScrollRobot
positiveAmount
- the number of scroll ticksdirection
- whether to scroll up or downpublic void scrollUp(int positiveAmount)
ScrollRobot
scrollUp
in interface ScrollRobot
positiveAmount
- the number of scroll tickspublic void scrollDown(int positiveAmount)
ScrollRobot
scrollDown
in interface ScrollRobot
positiveAmount
- the number of scroll tickspublic void scroll(int positiveAmount, HorizontalDirection direction)
ScrollRobot
scroll
in interface ScrollRobot
positiveAmount
- the number of scroll ticksdirection
- whether to scroll left or rightpublic void scrollRight(int positiveAmount)
ScrollRobot
scrollRight
in interface ScrollRobot
positiveAmount
- the number of scroll tickspublic void scrollLeft(int positiveAmount)
ScrollRobot
scrollLeft
in interface ScrollRobot
positiveAmount
- the number of scroll ticks