UIMouseScrollEvent
final class UIMouseScrollEvent<U extends UI>
Extends: UIInputEvent<U>
Package: dev.joid.lib.ui.event.impl.ui · Module: core · Source: UIMouseScrollEvent.java
The event of handleMouseScroll on a UI, with the position of the pointer and the turn of the wheel that no node consumed.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
UIMouseScrollEvent<U> | create(U ui, double mouseX, double mouseY, double notchesX, double notchesY) factory | Creates the event for a UI, the position of the pointer and the notches on each axis. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
double | getMouseX() | Returns the horizontal position of the pointer, in design pixels of the UI. |
double | getMouseY() | Returns the vertical position of the pointer, in design pixels of the UI. |
double | getNotchesX() | Returns the horizontal turn of the wheel or of the touchpad, in notches, fractions included. |
double | getNotchesY() | Returns the vertical turn of the wheel, in notches, fractions included: positive when the wheel turns up, negative when it turns down. |
Inherited from UIInputEvent (2)
Creation details
Section titled “Creation details”create
Section titled “create”<U extends UI> UIMouseScrollEvent<U> create(U ui, double mouseX, double mouseY, double notchesX, double notchesY) factory
Creates the event for a UI, the position of the pointer and the notches on each axis.
Method details
Section titled “Method details”getMouseX
Section titled “getMouseX”double getMouseX()
Returns the horizontal position of the pointer, in design pixels of the UI.
getMouseY
Section titled “getMouseY”double getMouseY()
Returns the vertical position of the pointer, in design pixels of the UI.
getNotchesX
Section titled “getNotchesX”double getNotchesX()
Returns the horizontal turn of the wheel or of the touchpad, in notches, fractions included.
getNotchesY
Section titled “getNotchesY”double getNotchesY()
Returns the vertical turn of the wheel, in notches, fractions included: positive when the wheel turns up, negative when it turns down.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
