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
23 public interface ITmfTimeProvider
extends ITmfViewer
{
26 * Gets the start time of trace
28 * @return start time of trace
33 * Gets the end time of trace
35 * @return End time of trace
40 * Gets the start time of current time range displayed
42 * @return start time of current time range
44 long getWindowStartTime();
47 * Gets the end time of current time range displayed
49 * @return End time of current time range
51 long getWindowEndTime();
54 * Gets the duration of the current time range displayed
56 * @return duration of current time range
58 long getWindowDuration();
61 * Gets the begin time of the selected range
63 * @return the begin time of the selected range
65 long getSelectionBeginTime();
68 * Gets the end time of the selected range
70 * @return end time of the selected range
72 long getSelectionEndTime();
75 * Method to notify about a change of the current selected time.
77 * @param currentBeginTime
78 * The current selection begin time
79 * @param currentEndTime
80 * The current selection end time
82 void updateSelectionRange(long currentBeginTime
, long currentEndTime
);
85 * Updates the current time range window.
87 * @param windowStartTime
88 * The window start time
89 * @param windowEndTime
90 * The window end time.
92 void updateWindow(long windowStartTime
, long windowEndTime
);
This page took 0.034467 seconds and 5 git commands to generate.