1 /*******************************************************************************
2 * Copyright (c) 2014 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Bernd Hufmann - Initial API and implementation in ITmfChartTimeProvider
11 * Geneviève Bastien - Moved methods from ITmfChartTimeProvider to this interface
12 *******************************************************************************/
14 package org
.eclipse
.tracecompass
.tmf
.ui
.viewers
;
17 * Interface for providing and updating time information. This is typically
18 * implemented by a viewer that is displaying trace data over time.
20 * @author Bernd Hufmann
21 * @author Geneviève Bastien
24 public interface ITmfTimeProvider
extends ITmfViewer
{
27 * Gets the start time of trace
29 * @return start time of trace
34 * Gets the end time of trace
36 * @return End time of trace
41 * Gets the start time of current time range displayed
43 * @return start time of current time range
45 long getWindowStartTime();
48 * Gets the end time of current time range displayed
50 * @return End time of current time range
52 long getWindowEndTime();
55 * Gets the duration of the current time range displayed
57 * @return duration of current time range
59 long getWindowDuration();
62 * Gets the begin time of the selected range
64 * @return the begin time of the selected range
66 long getSelectionBeginTime();
69 * Gets the end time of the selected range
71 * @return end time of the selected range
73 long getSelectionEndTime();
76 * Method to notify about a change of the current selected time.
78 * @param currentBeginTime
79 * The current selection begin time
80 * @param currentEndTime
81 * The current selection end time
83 void updateSelectionRange(long currentBeginTime
, long currentEndTime
);
86 * Updates the current time range window.
88 * @param windowStartTime
89 * The window start time
90 * @param windowEndTime
91 * The window end time.
93 void updateWindow(long windowStartTime
, long windowEndTime
);
This page took 0.032345 seconds and 5 git commands to generate.