+
/*****************************************************************************
* Copyright (c) 2007 Intel Corporation, 2010, 2012 Ericsson.
* All rights reserved. This program and the accompanying materials
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();
}