Class UITooltip

All Implemented Interfaces:
UIKeyHandler, Hintable, Savable

public class UITooltip extends UIContainer
Defines a component used by the hud to display floating tool tips.
  • Constructor Details

    • UITooltip

      public UITooltip()
      Construct a new UITooltip.
  • Method Details

    • getLabel

      public AbstractLabelUIComponent getLabel()
      Returns:
      the label used to display tips.
    • getUIComponent

      public UIComponent getUIComponent(int hudX, int hudY)
      Overrides:
      getUIComponent in class UIContainer
      Parameters:
      hudX - the x screen coordinate
      hudY - the y screen coordinate
      Returns:
      this component (or an appropriate child coordinate in the case of a container) if the given screen coordinates fall inside the margin area of this component.