Class TmfBaseProvider
java.lang.Object
org.eclipse.tracecompass.tmf.ui.viewers.xychart.TmfBaseProvider
- Direct Known Subclasses:
TmfClosestDataPointTooltipProvider,TmfCommonXLineChartTooltipProvider,TmfHistogramTooltipProvider,TmfMouseDragProvider,TmfMouseDragZoomProvider,TmfMouseSelectionProvider,TmfMouseWheelZoomProvider,TmfSimpleTooltipProvider
Base class for any provider such as tool tip, zoom and selection providers.
- Since:
- 6.0
- Author:
- Bernd Hufmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Method deregisters provider from chart viewer.Returns the chart viewer reference.Gets the seriesGet a tooltip handler, if availablegetXAxis()Get the X axisgetYAxis()Get the Y Axisvoidredraw()Causes the window to be redrawn by invoking a paint request.voidrefresh()Method to refresh the viewer.voidsetToolTipText(String tooltip) Sets the basic tooltip text it is recommended to useTmfAbstractToolTipHandlerinstead
-
Constructor Details
-
TmfBaseProvider
Standard constructor.- Parameters:
tmfChartViewer- The parent histogram object
-
-
Method Details
-
getChartViewer
Returns the chart viewer reference.- Returns:
- the chart viewer reference
-
getSeries
Gets the series- Returns:
- the series
-
getXAxis
Get the X axis- Returns:
- the X axis
-
getYAxis
Get the Y Axis- Returns:
- the Y axis
-
redraw
public void redraw()Causes the window to be redrawn by invoking a paint request. -
setToolTipText
Sets the basic tooltip text it is recommended to useTmfAbstractToolTipHandlerinstead- Parameters:
tooltip- the tooltip string
-
getTooltipHandler
Get a tooltip handler, if available- Returns:
- the tooltip handler
-
dispose
public void dispose()Method deregisters provider from chart viewer. Subclasses may override this method to dispose any resources. -
refresh
public void refresh()Method to refresh the viewer. It will redraw the viewer.
-