1 /*****************************************************************************
2 * Copyright (c) 2007 Intel Corporation, 2010, 2012 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
14 *****************************************************************************/
16 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
;
19 * Time data provider interface, for use in the timegraph widget.
22 * @author Alvaro Sanchez-Leon
23 * @author Patrick Tasse
25 public interface ITimeDataProvider
{
28 * @return The selected time
30 long getSelectedTime();
33 * @return The beginning time
38 * @return The end time
43 * @return The minimum time
48 * @return The maximum time
53 * @return The start time of the current selection window
58 * @return The end time of the current selection window
63 * @return The minimal time interval
65 long getMinTimeInterval();
68 * Updates the time range and notify registered listeners
73 void setStartFinishTimeNotify(long time0
, long time1
);
76 * Update the time range but do not trigger event notification
81 void setStartFinishTime(long time0
, long time1
);
84 * Notify registered listeners without updating the time range
86 void notifyStartFinishTime();
89 * Updates the selected time, adjusts the time range if necessary and
90 * notifies any registered listeners about the new selected time and new
91 * range (if necessary)
95 * @param ensureVisible
96 * Ensure visibility of new time (will adjust time range if
99 public void setSelectedTimeNotify(long time
, boolean ensureVisible
);
102 * Updates the selected time and adjusts the time range if necessary without
103 * notifying registered listeners.
107 * @param ensureVisible
108 * Ensure visibility of new time (will adjust time range if
111 public void setSelectedTime(long time
, boolean ensureVisible
);
114 * Reset the start and end times
116 void resetStartFinishTime();
119 * @return The names' width
124 * Set the names' width
128 void setNameSpace(int width
);
131 * @return The width for timestamps
136 * @return If the calendar format is absolute (true) or relative (false)
138 boolean isCalendarFormat();
This page took 0.035481 seconds and 6 git commands to generate.