74c33569964be9268d5c5e93257327e93950dca1
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 long getSelectedTime();
35 * @return The beginning time
40 * @return The end time
45 * @return The minimum time
50 * @return The maximum time
55 * @return The start time of the current selection window
60 * @return The end time of the current selection window
65 * @return The minimal time interval
67 long getMinTimeInterval();
70 * Updates the time range and notify registered listeners
75 void setStartFinishTimeNotify(long time0
, long time1
);
78 * Update the time range but do not trigger event notification
83 void setStartFinishTime(long time0
, long time1
);
86 * Notify registered listeners without updating the time range
88 void notifyStartFinishTime();
91 * Updates the selected time, adjusts the time range if necessary and
92 * notifies any registered listeners about the new selected time and new
93 * range (if necessary)
97 * @param ensureVisible
98 * Ensure visibility of new time (will adjust time range if
101 public void setSelectedTimeNotify(long time
, boolean ensureVisible
);
104 * Updates the selected time and adjusts the time range if necessary without
105 * notifying registered listeners.
109 * @param ensureVisible
110 * Ensure visibility of new time (will adjust time range if
113 public void setSelectedTime(long time
, boolean ensureVisible
);
116 * Reset the start and end times
118 void resetStartFinishTime();
121 * @return The names' width
126 * Set the names' width
130 void setNameSpace(int width
);
133 * @return The width for timestamps
138 * @return the time format, one of:
140 * <li>{@link TimeFormat#CALENDAR} absolute time, displayed as year/month/day/hours/minutes/seconds/ms/us/ns
141 * <li>{@link TimeFormat#RELATIVE} relative time, displayed as seconds/ms/us/ns
142 * <li>{@link TimeFormat#NUMBER} number, displayed as long values.
146 TimeFormat
getTimeFormat();
This page took 0.03337 seconds and 5 git commands to generate.