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 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 ScrollType |
scrollType()
Returns the scroll type of the event.
|
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 float deltaX()
default float deltaY()