Interface ITmfTimeProvider
- All Superinterfaces:
ITmfComponent,ITmfViewer
- All Known Subinterfaces:
ITmfChartTimeProvider
- All Known Implementing Classes:
AbstractSegmentsStatisticsViewer,AbstractSegmentStoreScatterChartTreeViewer2,AbstractSegmentStoreScatterChartViewer2,AbstractSelectTreeViewer2,AbstractTmfTreeViewer,CounterChartViewer,CounterTreeViewer,SegmentStoreStatisticsViewer,TmfCommonXAxisChartViewer,TmfFilteredXYChartViewer,TmfTimeViewer,TmfXYChartViewer
Interface for providing and updating time information. This is typically
implemented by a viewer that is displaying trace data over time.
- Author:
- Bernd Hufmann, Geneviève Bastien
-
Method Summary
Modifier and TypeMethodDescriptionlongGets the end time of tracelongGets the begin time of the selected rangelongGets the end time of the selected rangelongGets the start time of tracelongGets the duration of the current time range displayedlongGets the end time of current time range displayedlongGets the start time of current time range displayedvoidupdateSelectionRange(long currentBeginTime, long currentEndTime) Method to notify about a change of the current selected time.voidupdateWindow(long windowStartTime, long windowEndTime) Updates the current time range window.Methods inherited from interface org.eclipse.tracecompass.tmf.core.component.ITmfComponent
broadcast, broadcastAsync, dispose, getNameMethods inherited from interface org.eclipse.tracecompass.tmf.ui.viewers.ITmfViewer
getControl, refresh
-
Method Details
-
getStartTime
long getStartTime()Gets the start time of trace- Returns:
- start time of trace
-
getEndTime
long getEndTime()Gets the end time of trace- Returns:
- End time of trace
-
getWindowStartTime
long getWindowStartTime()Gets the start time of current time range displayed- Returns:
- start time of current time range
-
getWindowEndTime
long getWindowEndTime()Gets the end time of current time range displayed- Returns:
- End time of current time range
-
getWindowDuration
long getWindowDuration()Gets the duration of the current time range displayed- Returns:
- duration of current time range
-
getSelectionBeginTime
long getSelectionBeginTime()Gets the begin time of the selected range- Returns:
- the begin time of the selected range
-
getSelectionEndTime
long getSelectionEndTime()Gets the end time of the selected range- Returns:
- end time of the selected range
-
updateSelectionRange
void updateSelectionRange(long currentBeginTime, long currentEndTime) Method to notify about a change of the current selected time.- Parameters:
currentBeginTime- The current selection begin timecurrentEndTime- The current selection end time
-
updateWindow
void updateWindow(long windowStartTime, long windowEndTime) Updates the current time range window.- Parameters:
windowStartTime- The window start timewindowEndTime- The window end time.
-