Commit | Line | Data |
---|---|---|
0fcf3b09 PT |
1 | /***************************************************************************** |
2 | * Copyright (c) 2013 École Polytechnique de Montréal, Ericsson. | |
3 | * All rights reserved. This program and the accompanying materials | |
4 | * are made available under the terms of the Eclipse Public License v1.0 | |
5 | * which accompanies this distribution, and is available at | |
6 | * http://www.eclipse.org/legal/epl-v10.html | |
7 | * | |
8 | * Contributors: | |
9 | * Geneviève Bastien - Added methods to save a time range selection | |
10 | * Patrick Tasse - Support for range selection | |
11 | *****************************************************************************/ | |
12 | ||
13 | package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets; | |
14 | ||
15 | ||
16 | /** | |
17 | * Extension of the ITimeDateProvider interface to avoid API breakage | |
18 | * | |
19 | * @version 1.0 | |
20 | * @TODO: Move these to the ITimeDateProvider interface when API 3.0 is reached | |
1b90b28a | 21 | * @since 3.0 |
0fcf3b09 PT |
22 | */ |
23 | public interface ITimeDataProvider2 extends ITimeDataProvider { | |
24 | ||
25 | /** | |
26 | * Updates the selection begin and end time and notifies any registered | |
27 | * listeners about the new time range (if necessary) | |
28 | * | |
29 | * @param beginTime the selection begin time | |
30 | * @param endTime the selection end time | |
31 | */ | |
32 | void setSelectionRangeNotify(long beginTime, long endTime); | |
33 | ||
34 | /** | |
35 | * Updates the selection begin and end time | |
36 | * | |
37 | * @param beginTime the selection begin time | |
38 | * @param endTime the selection end time | |
39 | */ | |
40 | void setSelectionRange(long beginTime, long endTime); | |
41 | ||
42 | /** | |
43 | * @return The begin time of the current selection | |
44 | */ | |
45 | long getSelectionBegin(); | |
46 | ||
47 | /** | |
48 | * @return The end time of the current selection | |
49 | */ | |
50 | long getSelectionEnd(); | |
51 | ||
52 | } |