public interface MouseWheel extends MouseEvent
Modifier and Type | Interface and Description |
---|---|
static class |
MouseWheel.Builder
A builder of
MouseWheel . |
Modifier and Type | Method and Description |
---|---|
default boolean |
isHorizontalScroll()
Returns
true if the scrolling direction is horizontal. |
default KeyModifiers |
keyModifiers()
Returns the keyboard modifiers applied.
|
default Point |
location()
Returns the mouse position relative to the bounds of the browser instance.
|
default Point |
locationOnScreen()
Returns the mouse position relative to the bounds of the screen.
|
static MouseWheel.Builder |
newBuilder(Point location)
Creates a new
MouseWheel builder with the given required parameters. |
default int |
scrollbarPixelsPerLine()
Returns the number of pixels per line for scrolling.
|
default ScrollType |
scrollType()
Returns the scroll type of the event.
|
default int |
unitsToScroll()
Returns the number of units to scroll.
|
static MouseWheel.Builder newBuilder(Point location)
MouseWheel
builder with the given required parameters.location
- the mouse position relative to the bounds of the browser instanceMouseWheel.Builder
instancedefault Point location()
MouseEvent
location
in interface MouseEvent
default Point locationOnScreen()
MouseEvent
locationOnScreen
in interface MouseEvent
default KeyModifiers keyModifiers()
default ScrollType scrollType()
default int unitsToScroll()
default boolean isHorizontalScroll()
true
if the scrolling direction is horizontal.default int scrollbarPixelsPerLine()