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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeDrawEvent<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> NodeDrawEvent<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
