Commit | Line | Data |
---|---|---|
b0d3496e | 1 | /*****************************************************************************\r |
a5823d5f | 2 | * Copyright (c) 2007, 2010 Intel Corporation.\r |
b0d3496e ASL |
3 | * All rights reserved. This program and the accompanying materials\r |
4 | * are made available under the terms of the Eclipse Public License v1.0\r | |
5 | * which accompanies this distribution, and is available at\r | |
6 | * http://www.eclipse.org/legal/epl-v10.html\r | |
7 | *\r | |
8 | * Contributors:\r | |
9 | * Intel Corporation - Initial API and implementation\r | |
10 | * Ruslan A. Scherbakov, Intel - Initial API and implementation\r | |
a5823d5f | 11 | * Alvaro Sanchex-Leon - Updated for TMF\r |
b0d3496e ASL |
12 | *\r |
13 | * $Id: ITimeDataProvider.java,v 1.2 2007/02/27 18:37:36 ewchan Exp $ \r | |
14 | *****************************************************************************/\r | |
15 | \r | |
16 | package org.eclipse.linuxtools.tmf.ui.viewers.timeAnalysis.widgets;\r | |
17 | \r | |
18 | public interface ITimeDataProvider {\r | |
19 | \r | |
20 | long getSelectedTime();\r | |
21 | \r | |
22 | long getBeginTime();\r | |
23 | \r | |
24 | long getEndTime();\r | |
25 | \r | |
26 | long getMinTime();\r | |
27 | \r | |
28 | long getMaxTime();\r | |
29 | \r | |
30 | long getTime0();\r | |
31 | \r | |
32 | long getTime1();\r | |
33 | \r | |
34 | long getMinTimeInterval();\r | |
35 | \r | |
71c964eb ASL |
36 | /**\r |
37 | * Updates the time range and notify registered listeners\r | |
38 | * \r | |
39 | * @param time0\r | |
40 | * @param time1\r | |
41 | */\r | |
42 | void setStartFinishTimeNotify(long time0, long time1);\r | |
43 | \r | |
44 | /**\r | |
45 | * Update the time range but do not trigger event notification\r | |
46 | * \r | |
47 | * @param time0\r | |
48 | * @param time1\r | |
49 | */\r | |
b0d3496e ASL |
50 | void setStartFinishTime(long time0, long time1);\r |
51 | \r | |
8b9fa226 ASL |
52 | /**\r |
53 | * Notify registered listeners without updating the time range\r | |
54 | */\r | |
55 | void notifyStartFinishTime();\r | |
56 | \r | |
b0d3496e ASL |
57 | void setSelectedTimeInt(long time, boolean ensureVisible);\r |
58 | \r | |
59 | void resetStartFinishTime();\r | |
60 | \r | |
61 | int getNameSpace();\r | |
62 | \r | |
63 | void setNameSpace(int width);\r | |
64 | \r | |
65 | int getTimeSpace();\r | |
66 | \r | |
67 | boolean isCalendarFormat();\r | |
68 | }\r |