Class RichTooltipManager

java.lang.Object
org.pushingpixels.radiance.component.api.common.RichTooltipManager

public class RichTooltipManager extends Object
  • Field Details

    • initialDelayTimer

      private Timer initialDelayTimer
    • dismissTimer

      private Timer dismissTimer
    • richTooltip

      private RichTooltip richTooltip
    • currentActiveTrackable

      private RichTooltipManager.WithRichTooltip currentActiveTrackable
    • lastMouseEvent

      private MouseEvent lastMouseEvent
    • lastMouseEventInCurrentActiveTrackableCoordinates

      private MouseEvent lastMouseEventInCurrentActiveTrackableCoordinates
    • sharedInstance

      private static final RichTooltipManager sharedInstance
    • tipWindow

      private Popup tipWindow
    • tip

      private JRichTooltipPanel tip
    • tipShowing

      private boolean tipShowing
  • Constructor Details

    • RichTooltipManager

      private RichTooltipManager()
  • Method Details

    • setInitialDelay

      public void setInitialDelay(int milliseconds)
      Specifies the initial delay value.
      Parameters:
      milliseconds - the number of milliseconds to delay (after the cursor has paused) before displaying the tooltip
      See Also:
    • getInitialDelay

      public int getInitialDelay()
      Returns the initial delay value.
      Returns:
      an integer representing the initial delay value, in milliseconds
      See Also:
    • setDismissDelay

      public void setDismissDelay(int milliseconds)
      Specifies the dismissal delay value.
      Parameters:
      milliseconds - the number of milliseconds to delay before taking away the tooltip
      See Also:
    • getDismissDelay

      public int getDismissDelay()
      Returns the dismissal delay value.
      Returns:
      an integer representing the dismissal delay value, in milliseconds
      See Also:
    • retarget

      private MouseEvent retarget(MouseEvent original, Component source, Component target)
    • showTipWindow

      private void showTipWindow(MouseEvent mouseEvent)
    • windDownTooltip

      private void windDownTooltip()
    • hideTipWindow

      private void hideTipWindow()
    • sharedInstance

      public static RichTooltipManager sharedInstance()
      Returns a shared RichTooltipManager instance.
      Returns:
      a shared RichTooltipManager object
    • hideCurrentlyShowingTipIfNecessary

      public void hideCurrentlyShowingTipIfNecessary()
    • initiateToolTip

      private void initiateToolTip(MouseEvent original, RichTooltipManager.WithRichTooltip component)
    • checkForTipChange

      private void checkForTipChange(MouseEvent event, RichTooltipManager.WithRichTooltip component)