Class TooltipContainer

java.lang.Object
net.messagevortex.router.TooltipContainer

public class TooltipContainer extends Object
  • Constructor Details

    • TooltipContainer

      public TooltipContainer()
  • Method Details

    • addTooltip

      public void addTooltip(TooltipExtent extent, String text)

      Adds a tooltip at the given position.

      Parameters:
      extent - the area in which the tooltip should be shown
      text - the text to be shown
    • getTooltipText

      public String getTooltipText(Point p)

      Returns the first tooltip text found for a given position.

      Parameters:
      p - position for the tooltip
      Returns:
      the text or null if no tooltip is specified