lttng: Add arrows in Control Flow view
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / TimeGraphControl.java
index 0edbdf775e0d83372259ba2413d02552f91cd09b..8b5b826629b98fef660897e6bfae4ac318644a6b 100644 (file)
@@ -138,6 +138,7 @@ public class TimeGraphControl extends TimeGraphBaseControl implements FocusListe
     private final Cursor fZoomCursor = Display.getDefault().getSystemCursor(SWT.CURSOR_SIZEWE);
     private final List<ViewerFilter> fFilters = new ArrayList<ViewerFilter>();
     private MenuDetectEvent fPendingMenuDetectEvent = null;
+    private boolean fHideArrows = false;
 
     private int fBorderWidth = 0;
     private int fHeaderHeight = 0;
@@ -902,6 +903,17 @@ public class TimeGraphControl extends TimeGraphBaseControl implements FocusListe
         fTimeProvider.setStartFinishTimeNotify(time0, time1);
     }
 
+    /**
+     * Hide arrows
+     *
+     * @param hideArrows true to hide arrows
+     *
+     * @since 2.1
+     */
+    public void hideArrows(boolean hideArrows) {
+        fHideArrows = hideArrows;
+    }
+
     /**
      * Return the currently selected trace
      *
@@ -1379,6 +1391,9 @@ public class TimeGraphControl extends TimeGraphBaseControl implements FocusListe
      */
     public void drawLinks(Rectangle bounds, ITimeDataProvider timeProvider,
             List<ILinkEvent> links, int nameSpace, GC gc) {
+        if (fHideArrows) {
+            return;
+        }
         for (ILinkEvent event : links) {
             drawLink(event, bounds, timeProvider, nameSpace, gc);
         }
This page took 0.027314 seconds and 5 git commands to generate.