Skip to content

NodeDrawEvent

final class NodeDrawEvent<N extends Node>
Extends: NodeEvent<N>
Package: dev.joid.lib.ui.event.impl.node · Module: core · Source: NodeDrawEvent.java

The event of onDraw and onRender, with the position of the pointer on the frame being drawn.

Node.onDraw fires right after the node drew itself, before its children in front of it; Node.onRender fires after the node, its children and its layers. A listener draws there with DrawUtils, in the coordinates of the parent.

ReturnsSignatureSummary
NodeDrawEvent<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> NodeDrawEvent<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