NodeHoverEvent
final class NodeHoverEvent<N extends Node>
Extends: NodeEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeHoverEvent.java
The event of onHoverStart, onHover and onHoverEnd, with the position of the pointer.
Description
Section titled “Description”Node.onHoverStart fires on the frame where the node becomes hovered, Node.onHover on every frame while it is hovered, and Node.onHoverEnd on the frame where it stops being hovered.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeHoverEvent<N> | create(N node, double mouseX, double mouseY) factory | Creates the event for a node and the position of the pointer. |
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. |
Creation details
Section titled “Creation details”create
Section titled “create”<N extends Node> NodeHoverEvent<N> create(N node, double mouseX, double mouseY) factory
Creates the event for a node and the position of the pointer.
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.
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
