public interface TooltipManager
AbstractLabel
is moved/resized to
display a tooltip text for an "active" GUI element.Modifier and Type | Method and Description |
---|---|
boolean |
hasTooltipText(AbstractGUIElement element)
Returns whether the tooltip is enabled.
|
void |
setElement(GUIElement guiElement)
Displays the tooltip for a GUI element.
|
void |
setTooltipText(AbstractGUIElement element,
java.lang.String tooltipText)
Updates the tooltip text of a GUI element.
|
void |
setTooltipText(GUIElement element,
java.lang.String tooltipText,
int x,
int y,
int w,
int h)
Updates the tooltip text of a GUI element.
|
void |
unsetElement(GUIElement guiElement)
Removes the tooltip of a GUI element.
|
boolean hasTooltipText(AbstractGUIElement element)
element
- the element to checkvoid setElement(@NotNull GUIElement guiElement)
guiElement
- the GUI element to show the tooltip ofvoid setTooltipText(@NotNull AbstractGUIElement element, @Nullable java.lang.String tooltipText)
element
- the GUI elementtooltipText
- the next tooltip textvoid setTooltipText(@NotNull GUIElement element, @Nullable java.lang.String tooltipText, int x, int y, int w, int h)
element
- the GUI element to processtooltipText
- the text to display in the tooltipx
- the x coordinate of the tooltipy
- the y coordinate of the tooltipw
- the width of the tooltiph
- the height of the tooltipvoid unsetElement(@NotNull GUIElement guiElement)
guiElement
- the gui element to remove the tooltip of