Skip to content

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.

ReturnsSignatureSummary
UIMouseScrollEvent<U>create(U ui, double mouseX, double mouseY, double notchesX, double notchesY) factoryCreates the event for a UI, the position of the pointer and the notches on each axis.

ReturnsSignatureSummary
doublegetMouseX()Returns the horizontal position of the pointer, in design pixels of the UI.
doublegetMouseY()Returns the vertical position of the pointer, in design pixels of the UI.
doublegetNotchesX()Returns the horizontal turn of the wheel or of the touchpad, in notches, fractions included.
doublegetNotchesY()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)

consume · isConsumed

Inherited from UIEvent (1)

getUi

<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.

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.


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

Report a problem with this page