Interface TooltipManager
- All Known Implementing Classes:
TooltipManagerImpl
public interface TooltipManager
Manages the tooltip display. An
AbstractLabel is moved/resized to
display a tooltip text for an "active" GUI element.-
Method Summary
Modifier and TypeMethodDescriptionvoidsetElement(@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 Details
-
setElement
Displays the tooltip for a GUI element.- Parameters:
guiElement- the GUI element to show the tooltip of
-
unsetElement
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
Reports a possibly changed tooltip text.- Parameters:
element- the GUI element that may have changed
-