Add syscall state info in CFV, support of initial time range, bugfixes
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / ITimeDataProvider.java
CommitLineData
b0d3496e 1/*****************************************************************************\r
fb5cad3d 2 * Copyright (c) 2007 Intel Corporation, 2010, 2012 Ericsson.\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
fb5cad3d
PT
9 * Intel Corporation - Initial API and implementation\r
10 * Ruslan A. Scherbakov, Intel - Initial API and implementation\r
11 * Alvaro Sanchez-Leon - Updated for TMF\r
12 * Patrick Tasse - Refactoring\r
b0d3496e 13 *\r
b0d3496e
ASL
14 *****************************************************************************/\r
15\r
2fa130b8 16package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets;\r
b0d3496e
ASL
17\r
18public interface ITimeDataProvider {\r
19\r
fb5cad3d 20 long getSelectedTime();\r
b0d3496e 21\r
fb5cad3d 22 long getBeginTime();\r
b0d3496e 23\r
fb5cad3d 24 long getEndTime();\r
b0d3496e 25\r
fb5cad3d 26 long getMinTime();\r
b0d3496e 27\r
fb5cad3d 28 long getMaxTime();\r
b0d3496e 29\r
fb5cad3d 30 long getTime0();\r
b0d3496e 31\r
fb5cad3d 32 long getTime1();\r
b0d3496e 33\r
fb5cad3d 34 long getMinTimeInterval();\r
b0d3496e 35\r
fb5cad3d
PT
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
71c964eb 43\r
fb5cad3d
PT
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
50 void setStartFinishTime(long time0, long time1);\r
b0d3496e 51\r
8b9fa226
ASL
52 /**\r
53 * Notify registered listeners without updating the time range\r
54 */\r
55 void notifyStartFinishTime();\r
56\r
3ac6ad1a
BH
57 /**\r
58 * Updates the selected time, adjusts the time range if necessary and notifies\r
59 * any registered listeners about the new selected time and new range (if necessary)\r
60 * \r
61 * @param time - A Time to set\r
62 * @param ensureVisible - Ensure visibility of new time (will adjust time range if necessary)\r
63 */\r
64 public void setSelectedTimeNotify(long time, boolean ensureVisible);\r
65 \r
66 /**\r
67 * Updates the selected time and adjusts the time range if necessary \r
68 * without notifying registered listeners.\r
69 * \r
70 * @param time - A Time to set\r
71 * @param ensureVisible - Ensure visibility of new time (will adjust time range if necessary)\r
72 */\r
73 public void setSelectedTime(long time, boolean ensureVisible);\r
fb5cad3d
PT
74\r
75 void resetStartFinishTime();\r
b0d3496e 76\r
fb5cad3d 77 int getNameSpace();\r
b0d3496e 78\r
fb5cad3d 79 void setNameSpace(int width);\r
b0d3496e 80\r
fb5cad3d 81 int getTimeSpace();\r
b0d3496e 82\r
fb5cad3d 83 boolean isCalendarFormat();\r
b0d3496e 84}\r
This page took 0.036394 seconds and 5 git commands to generate.