ss: Move plugins to Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / ITimeDataProvider.java
index 74c33569964be9268d5c5e93257327e93950dca1..992130836760adb3ab8d7b321b188049d58c0253 100644 (file)
@@ -1,5 +1,6 @@
 /*****************************************************************************
- * Copyright (c) 2007, 2013 Intel Corporation, Ericsson.
+ * Copyright (c) 2007, 2014 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
@@ -9,7 +10,8 @@
  *   Intel Corporation - Initial API and implementation
  *   Ruslan A. Scherbakov, Intel - Initial API and implementation
  *   Alvaro Sanchez-Leon - Updated for TMF
- *   Patrick Tasse - Refactoring
+ *   Geneviève Bastien - Added methods to save a time range selection
+ *   Patrick Tasse - Refactoring, support for range selection
  *****************************************************************************/
 
 package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets;
@@ -27,9 +29,35 @@ import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets.Utils.TimeFormat;
 public interface ITimeDataProvider {
 
     /**
-     * @return The selected time
+     * Updates the selection begin and end time and notifies any registered
+     * listeners about the new time range (if necessary)
+     *
+     * @param beginTime the selection begin time
+     * @param endTime the selection end time
+     * @since 3.0
+     */
+    void setSelectionRangeNotify(long beginTime, long endTime);
+
+    /**
+     * Updates the selection begin and end time
+     *
+     * @param beginTime the selection begin time
+     * @param endTime the selection end time
+     * @since 3.0
+     */
+    void setSelectionRange(long beginTime, long endTime);
+
+    /**
+     * @return The begin time of the current selection
+     * @since 3.0
+     */
+    long getSelectionBegin();
+
+    /**
+     * @return The end time of the current selection
+     * @since 3.0
      */
-    long getSelectedTime();
+    long getSelectionEnd();
 
     /**
      * @return The beginning time
@@ -98,7 +126,7 @@ public interface ITimeDataProvider {
      *            Ensure visibility of new time (will adjust time range if
      *            necessary)
      */
-    public void setSelectedTimeNotify(long time, boolean ensureVisible);
+    void setSelectedTimeNotify(long time, boolean ensureVisible);
 
     /**
      * Updates the selected time and adjusts the time range if necessary without
@@ -110,7 +138,7 @@ public interface ITimeDataProvider {
      *            Ensure visibility of new time (will adjust time range if
      *            necessary)
      */
-    public void setSelectedTime(long time, boolean ensureVisible);
+    void setSelectedTime(long time, boolean ensureVisible);
 
     /**
      * Reset the start and end times
This page took 0.030222 seconds and 5 git commands to generate.