Interface TooltipManager
-
- All Known Implementing Classes:
TooltipManagerImpl
public interface TooltipManagerManages the tooltip display. AnAbstractLabelis moved/resized to display a tooltip text for an "active" GUI element.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetElement(@NotNull AbstractGUIElement guiElement)Displays the tooltip for a GUI element.voidtooltipTextChanged(@NotNull GUIElement element)Reports a possibly changed tooltip text.voidunsetElement(@NotNull AbstractGUIElement guiElement)Removes the tooltip of a GUI element.
-
-
-
Method Detail
-
setElement
void setElement(@NotNull @NotNull AbstractGUIElement guiElement)Displays the tooltip for a GUI element.- Parameters:
guiElement- the GUI element to show the tooltip of
-
unsetElement
void unsetElement(@NotNull @NotNull AbstractGUIElement guiElement)Removes the tooltip of a GUI element. Does nothing if the given GUI element is not active.- Parameters:
guiElement- the gui element to remove the tooltip of
-
tooltipTextChanged
void tooltipTextChanged(@NotNull @NotNull GUIElement element)Reports a possibly changed tooltip text.- Parameters:
element- the GUI element that may have changed
-
-