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
{
27 long getSelectedTime();
41 long getMinTimeInterval();
44 * Updates the time range and notify registered listeners
49 void setStartFinishTimeNotify(long time0
, long time1
);
52 * Update the time range but do not trigger event notification
57 void setStartFinishTime(long time0
, long time1
);
60 * Notify registered listeners without updating the time range
62 void notifyStartFinishTime();
65 * Updates the selected time, adjusts the time range if necessary and notifies
66 * any registered listeners about the new selected time and new range (if necessary)
68 * @param time - A Time to set
69 * @param ensureVisible - Ensure visibility of new time (will adjust time range if necessary)
71 public void setSelectedTimeNotify(long time
, boolean ensureVisible
);
74 * Updates the selected time and adjusts the time range if necessary
75 * without notifying registered listeners.
77 * @param time - A Time to set
78 * @param ensureVisible - Ensure visibility of new time (will adjust time range if necessary)
80 public void setSelectedTime(long time
, boolean ensureVisible
);
82 void resetStartFinishTime();
86 void setNameSpace(int width
);
90 boolean isCalendarFormat();
This page took 0.033775 seconds and 6 git commands to generate.