/*****************************************************************************
- * Copyright (c) 2007 Intel Corporation, 2010, 2012 Ericsson.
+ * Copyright (c) 2007, 2013 Intel Corporation, Ericsson.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* Ruslan A. Scherbakov, Intel - Initial API and implementation
* Alvaro Sanchez-Leon - Updated for TMF
* Patrick Tasse - Refactoring
- *
*****************************************************************************/
package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets;
+import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets.Utils.TimeFormat;
+
/**
* Time data provider interface, for use in the timegraph widget.
*
* @version 1.0
* @author Alvaro Sanchez-Leon
* @author Patrick Tasse
+ * @author Xavier Raynaud
*/
public interface ITimeDataProvider {
int getTimeSpace();
/**
- * @return If the calendar format is absolute (true) or relative (false)
+ * @return the time format, one of:
+ * <ul>
+ * <li>{@link TimeFormat#CALENDAR} absolute time, displayed as year/month/day/hours/minutes/seconds/ms/us/ns
+ * <li>{@link TimeFormat#RELATIVE} relative time, displayed as seconds/ms/us/ns
+ * <li>{@link TimeFormat#NUMBER} number, displayed as long values.
+ * </ul>
+ * @since 2.0
*/
- boolean isCalendarFormat();
+ TimeFormat getTimeFormat();
}