tmf: Fix remaining Java warnings in tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / ITimeDataProvider.java
index 260eb1b4cf3e572bb21681d2a330af594d4406de..1d8db4c729d7292ecc006fc8823923bc4e3038f8 100644 (file)
@@ -1,3 +1,4 @@
+
 /*****************************************************************************
  * 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 {
 
@@ -133,7 +137,13 @@ 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();
 }
This page took 0.024498 seconds and 5 git commands to generate.