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 float |
deltaX()
Returns the amount of units to scroll horizontally.
|
default float |
deltaY()
Returns the amount of units to scroll vertically.
|
default boolean |
isHorizontalScroll()
|
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()
|
default ScrollType |
scrollType()
Returns the scroll type of the event.
|
default int |
unitsToScroll()
|
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()
MouseEventlocation in interface MouseEventdefault Point locationOnScreen()
MouseEventlocationOnScreen in interface MouseEventdefault KeyModifiers keyModifiers()
default ScrollType scrollType()
@Deprecated default int unitsToScroll()
@Deprecated default boolean isHorizontalScroll()
true if the scrolling direction is horizontal.default float deltaX()
default float deltaY()
@Deprecated default int scrollbarPixelsPerLine()