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 Details

    • 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