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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
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 Axisvoid
redraw()
Causes the window to be redrawn by invoking a paint request.void
refresh()
Method to refresh the viewer.void
setToolTipText
(String tooltip) Sets the basic tooltip text it is recommended to useTmfAbstractToolTipHandler
instead
-
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 useTmfAbstractToolTipHandler
instead- 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.
-