Skip to content

NodeLayer

interface NodeLayer
Package: dev.joid.lib.ui.node.layer · Module: core · Source: NodeLayer.java

Function that draws over a node, after its children, in the coordinates of the node.

Add one with Node.layer(NodeLayer). It runs on the render thread at every frame where the node is drawn.

ReturnsSignatureSummary
voiddraw(Node node, double mouseX, double mouseY) abstractDraws over the node: (0, 0) is its top-left corner, and the mouse position is given in the same coordinates.

void draw(Node node, double mouseX, double mouseY) abstract

Draws over the node: (0, 0) is its top-left corner, and the mouse position is given in the same coordinates.


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