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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| PositionedHoverElement(IHoverElement element, HoverElementPosition position) protected | Called by a subclass with the element to draw and its position. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
For subclasses
Section titled “For subclasses”| Returns | Signature | Summary |
|---|---|---|
void | detach() hook | Detaches the element it draws. |
Inherited from IHoverElement (4)
Creation details
Section titled “Creation details”PositionedHoverElement
Section titled “PositionedHoverElement”PositionedHoverElement(IHoverElement element, HoverElementPosition position) protected
Called by a subclass with the element to draw and its position.
Method details
Section titled “Method details”render
Section titled “render”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.
getElement
Section titled “getElement”IHoverElement getElement()
The element it draws.
getPosition
Section titled “getPosition”HoverElementPosition getPosition()
Where the element is placed.
detach
Section titled “detach”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
