NodeHoverElement
class NodeHoverElement
Extends: PositionedHoverElement
Package: dev.joid.lib.ui.node.hover.impl · Module: core · Source: NodeHoverElement.java
Tooltip made of a node, loaded and drawn while its owner is hovered.
Description
Section titled “Description”The node is loaded into the UI of the hovered node the first time it shows, updated and drawn on every frame of the hover, and detached with the element. Its position becomes an offset from the place of the tooltip.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
NodeHoverElement | follow(Node node) factory | Shows the node at the mouse. |
NodeHoverElement | fixed(Node node) factory | Shows the node at its own position on the canvas. |
NodeHoverElement | relative(Node node) factory | Shows the node at its own position inside the hovered node. |
| NodeHoverElement(Node node, HoverElementPosition position) protected | Called by a subclass with the node and its position. |
Methods
Section titled “Methods”Inherited from PositionedHoverElement (3)
Inherited from IHoverElement (4)
Creation details
Section titled “Creation details”follow
Section titled “follow”NodeHoverElement follow(Node node) factory
Shows the node at the mouse.
NodeHoverElement fixed(Node node) factory
Shows the node at its own position on the canvas.
relative
Section titled “relative”NodeHoverElement relative(Node node) factory
Shows the node at its own position inside the hovered node.
NodeHoverElement
Section titled “NodeHoverElement”NodeHoverElement(Node node, HoverElementPosition position) protected
Called by a subclass with the node and its position.
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
