Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider2.java')
-rw-r--r--tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider2.java59
1 files changed, 59 insertions, 0 deletions
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider2.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider2.java
new file mode 100644
index 0000000000..af8a03e33b
--- /dev/null
+++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/ITimeGraphPresentationProvider2.java
@@ -0,0 +1,59 @@
+/*******************************************************************************
+ * Copyright (c) 2013, 2014 École Polytechnique de Montréal
+ *
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Geneviève Bastien - Add drawing helper methods
+ *******************************************************************************/
+
+package org.eclipse.tracecompass.tmf.ui.widgets.timegraph;
+
+import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.ITmfTimeGraphDrawingHelper;
+
+/**
+ * Extension of the ITimeGraphPresentationProvider interface to avoid API breakage
+ *
+ * @author Geneviève Bastien
+ * TODO: Add me to ITimeGraphPresentationProvider before the 3.0 release
+ */
+public interface ITimeGraphPresentationProvider2 extends ITimeGraphPresentationProvider {
+
+ /**
+ * Returns the drawing helper for this presentation provider.
+ *
+ * @return The drawing helper
+ */
+ ITmfTimeGraphDrawingHelper getDrawingHelper();
+
+ /**
+ * Sets this presentation provider's drawing helper.
+ * This helper be needed to know where to draw items, get its coordinates
+ * given a time, etc.
+ *
+ * @param helper
+ * The drawing helper
+ */
+ void setDrawingHelper(ITmfTimeGraphDrawingHelper helper);
+
+ /**
+ * Adds a color settings listener, to be notified when the presentation
+ * provider's state colors change.
+ *
+ * @param listener
+ * The new listener for color settings changes
+ */
+ public void addColorListener(ITimeGraphColorListener listener);
+
+ /**
+ * Removes a color settings listener.
+ *
+ * @param listener
+ * The color settings listener to remove
+ */
+ public void removeColorListener(ITimeGraphColorListener listener);
+
+} \ No newline at end of file

Back to the top