Skip to content

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.

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.

ReturnsSignatureSummary
NodeHoverElementfollow(Node node) factoryShows the node at the mouse.
NodeHoverElementfixed(Node node) factoryShows the node at its own position on the canvas.
NodeHoverElementrelative(Node node) factoryShows the node at its own position inside the hovered node.
NodeHoverElement(Node node, HoverElementPosition position) protectedCalled by a subclass with the node and its position.

Inherited from PositionedHoverElement (3)

render · getElement · getPosition

Inherited from IHoverElement (4)

getX · getY · getWidth · getHeight

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.


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