Package com.teamdev.jxbrowser.ui.event
Interface MouseWheel
- All Superinterfaces:
MouseEvent
An event indicating that the mouse wheel button has been rotated.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault float
deltaX()
Returns the amount of units to scroll horizontally.default float
deltaY()
Returns the amount of units to scroll vertically.default KeyModifiers
Returns the keyboard modifiers applied.default Point
location()
Returns the mouse position relative to the bounds of the browser instance.default Point
Returns the mouse position relative to the bounds of the screen.static MouseWheel.Builder
newBuilder
(Point location) Creates a newMouseWheel
builder with the given required parameters.default ScrollType
Returns the scroll type of the event.
-
Method Details
-
newBuilder
Creates a newMouseWheel
builder with the given required parameters.- Parameters:
location
- the mouse position relative to the bounds of the browser instance- Returns:
- a new
MouseWheel.Builder
instance
-
location
Description copied from interface:MouseEvent
Returns the mouse position relative to the bounds of the browser instance.- Specified by:
location
in interfaceMouseEvent
-
locationOnScreen
Description copied from interface:MouseEvent
Returns the mouse position relative to the bounds of the screen.- Specified by:
locationOnScreen
in interfaceMouseEvent
-
keyModifiers
Returns the keyboard modifiers applied. -
scrollType
Returns the scroll type of the event. -
deltaX
default float deltaX()Returns the amount of units to scroll horizontally. -
deltaY
default float deltaY()Returns the amount of units to scroll vertically.
-