Class TmfSimpleTooltipProvider

java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfBaseProvider
org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfSimpleTooltipProvider
All Implemented Interfaces:
EventListener, org.eclipse.swt.events.MouseTrackListener, org.eclipse.swt.internal.SWTEventListener

public class TmfSimpleTooltipProvider extends TmfBaseProvider implements org.eclipse.swt.events.MouseTrackListener
Tool tip provider for TMF chart viewer. It displays the x and y value of the current mouse position.
Since:
6.0
Author:
Bernd Hufmann
  • Constructor Details

    • TmfSimpleTooltipProvider

      public TmfSimpleTooltipProvider(ITmfChartTimeProvider tmfChartViewer)
      Constructor for a tool tip provider.
      Parameters:
      tmfChartViewer - The parent chart viewer
  • Method Details

    • getTooltipHandler

      public TmfAbstractToolTipHandler getTooltipHandler()
      Description copied from class: TmfBaseProvider
      Get a tooltip handler, if available
      Overrides:
      getTooltipHandler in class TmfBaseProvider
      Returns:
      the tooltip handler
    • refresh

      public void refresh()
      Description copied from class: TmfBaseProvider
      Method to refresh the viewer. It will redraw the viewer.
      Overrides:
      refresh in class TmfBaseProvider
    • mouseEnter

      public void mouseEnter(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseEnter in interface org.eclipse.swt.events.MouseTrackListener
    • mouseExit

      public void mouseExit(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseExit in interface org.eclipse.swt.events.MouseTrackListener
    • mouseHover

      public void mouseHover(org.eclipse.swt.events.MouseEvent e)
      Specified by:
      mouseHover in interface org.eclipse.swt.events.MouseTrackListener