1 /*****************************************************************************
2 * Copyright (c) 2007, 2013 Intel Corporation, 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
9 * Intel Corporation - Initial API and implementation
10 * Ruslan A. Scherbakov, Intel - Initial API and implementation
11 * Alvaro Sanchez-Leon - Updated for TMF
12 * Patrick Tasse - Refactoring
13 *****************************************************************************/
15 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
.Utils
.TimeFormat
;
20 * Time data provider interface, for use in the timegraph widget.
23 * @author Alvaro Sanchez-Leon
24 * @author Patrick Tasse
25 * @author Xavier Raynaud
27 public interface ITimeDataProvider
{
30 * @return The selected time
32 * @deprecated As of 2.1, replaced by {@link ITimeDataProvider2#getSelectionBegin()} and {@link ITimeDataProvider2#getSelectionEnd()}
35 long getSelectedTime();
38 * @return The beginning time
43 * @return The end time
48 * @return The minimum time
53 * @return The maximum time
58 * @return The start time of the current selection window
63 * @return The end time of the current selection window
68 * @return The minimal time interval
70 long getMinTimeInterval();
73 * Updates the time range and notify registered listeners
78 void setStartFinishTimeNotify(long time0
, long time1
);
81 * Update the time range but do not trigger event notification
86 void setStartFinishTime(long time0
, long time1
);
89 * Notify registered listeners without updating the time range
91 void notifyStartFinishTime();
94 * Updates the selected time, adjusts the time range if necessary and
95 * notifies any registered listeners about the new selected time and new
96 * range (if necessary)
100 * @param ensureVisible
101 * Ensure visibility of new time (will adjust time range if
104 void setSelectedTimeNotify(long time
, boolean ensureVisible
);
107 * Updates the selected time and adjusts the time range if necessary without
108 * notifying registered listeners.
112 * @param ensureVisible
113 * Ensure visibility of new time (will adjust time range if
116 void setSelectedTime(long time
, boolean ensureVisible
);
119 * Reset the start and end times
121 void resetStartFinishTime();
124 * @return The names' width
129 * Set the names' width
133 void setNameSpace(int width
);
136 * @return The width for timestamps
141 * @return the time format, one of:
143 * <li>{@link TimeFormat#CALENDAR} absolute time, displayed as year/month/day/hours/minutes/seconds/ms/us/ns
144 * <li>{@link TimeFormat#RELATIVE} relative time, displayed as seconds/ms/us/ns
145 * <li>{@link TimeFormat#NUMBER} number, displayed as long values.
149 TimeFormat
getTimeFormat();
This page took 0.039693 seconds and 5 git commands to generate.