Skip to content

PositionedHoverElement

abstract class PositionedHoverElement
Implements: IHoverElement
Known subtypes: CustomHoverElement, NodeHoverElement
Package: dev.joid.lib.ui.node.hover.impl · Module: core · Source: PositionedHoverElement.java

Tooltip element placed at the mouse, on the node or at a fixed point, and kept inside the window.

ReturnsSignatureSummary
PositionedHoverElement(IHoverElement element, HoverElementPosition position) protectedCalled by a subclass with the element to draw and its position.

ReturnsSignatureSummary
voidrender(Node node, double mouseX, double mouseY)Draws the element at its position plus its own offset, moved inside the window when it has a width and a height.
IHoverElementgetElement()The element it draws.
HoverElementPositiongetPosition()Where the element is placed.
ReturnsSignatureSummary
voiddetach() hookDetaches the element it draws.
Inherited from IHoverElement (4)

getX · getY · getWidth · getHeight

PositionedHoverElement(IHoverElement element, HoverElementPosition position) protected

Called by a subclass with the element to draw and its position.

void render(Node node, double mouseX, double mouseY)

Draws the element at its position plus its own offset, moved inside the window when it has a width and a height.

IHoverElement getElement()

The element it draws.

HoverElementPosition getPosition()

Where the element is placed.

void detach() hook

Detaches the element it draws.


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