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 Summary
ConstructorDescriptionTmfSimpleTooltipProvider
(ITmfChartTimeProvider tmfChartViewer) Constructor for a tool tip provider. -
Method Summary
Modifier and TypeMethodDescriptionGet a tooltip handler, if availablevoid
mouseEnter
(org.eclipse.swt.events.MouseEvent e) void
mouseExit
(org.eclipse.swt.events.MouseEvent e) void
mouseHover
(org.eclipse.swt.events.MouseEvent e) void
refresh()
Method to refresh the viewer.Methods inherited from class org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfBaseProvider
dispose, getChartViewer, getSeries, getXAxis, getYAxis, redraw, setToolTipText
-
Constructor Details
-
TmfSimpleTooltipProvider
Constructor for a tool tip provider.- Parameters:
tmfChartViewer
- The parent chart viewer
-
-
Method Details
-
getTooltipHandler
Description copied from class:TmfBaseProvider
Get a tooltip handler, if available- Overrides:
getTooltipHandler
in classTmfBaseProvider
- 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 classTmfBaseProvider
-
mouseEnter
public void mouseEnter(org.eclipse.swt.events.MouseEvent e) - Specified by:
mouseEnter
in interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseExit
public void mouseExit(org.eclipse.swt.events.MouseEvent e) - Specified by:
mouseExit
in interfaceorg.eclipse.swt.events.MouseTrackListener
-
mouseHover
public void mouseHover(org.eclipse.swt.events.MouseEvent e) - Specified by:
mouseHover
in interfaceorg.eclipse.swt.events.MouseTrackListener
-