Skip to content

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.

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.

ReturnsSignatureSummary
NodeHoverEvent<N>create(N node, double mouseX, double mouseY) factoryCreates the event for a node and the position of the pointer.

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.
Inherited from NodeEvent (1)

getNode

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

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.


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