Skip to content

CustomHoverElement

class CustomHoverElement
Extends: PositionedHoverElement
Package: dev.joid.lib.ui.node.hover.impl · Module: core · Source: CustomHoverElement.java

Places a tooltip element of your own at the mouse, on the node or at a fixed point.

ReturnsSignatureSummary
CustomHoverElementfollow(IHoverElement element) factoryDraws the element at the mouse.
CustomHoverElementfixed(IHoverElement element) factoryDraws the element from the top-left corner of the canvas.
CustomHoverElementrelative(IHoverElement element) factoryDraws the element from the top-left corner of the hovered node.
CustomHoverElement(IHoverElement element, HoverElementPosition position) protectedCalled by a subclass with the element and its position.

Inherited from PositionedHoverElement (3)

render · getElement · getPosition

Inherited from IHoverElement (4)

getX · getY · getWidth · getHeight

CustomHoverElement follow(IHoverElement element) factory

Draws the element at the mouse.

CustomHoverElement fixed(IHoverElement element) factory

Draws the element from the top-left corner of the canvas.

CustomHoverElement relative(IHoverElement element) factory

Draws the element from the top-left corner of the hovered node.

CustomHoverElement(IHoverElement element, HoverElementPosition position) protected

Called by a subclass with the element 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