[WIP] CFV Refactor
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / internal / provisional / tmf / core / views / timegraph2 / TimeGraphArrowSeries.java
diff --git a/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/provisional/tmf/core/views/timegraph2/TimeGraphArrowSeries.java b/tmf/org.eclipse.tracecompass.tmf.core/src/org/eclipse/tracecompass/internal/provisional/tmf/core/views/timegraph2/TimeGraphArrowSeries.java
new file mode 100644 (file)
index 0000000..398c5f7
--- /dev/null
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
+ *
+ * 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
+ *******************************************************************************/
+
+package org.eclipse.tracecompass.internal.provisional.tmf.core.views.timegraph2;
+
+import java.util.Collection;
+
+import com.google.common.collect.ImmutableList;
+
+public class TimeGraphArrowSeries {
+
+    public enum LineStyle {
+        FULL,
+        DOTTED,
+        DASHED;
+    }
+
+    private final String fSeriesName;
+    private final ColorDefinition fColor;
+    private final LineStyle fLineStyle;
+    private final Collection<TimeGraphArrow> fArrows;
+
+    public TimeGraphArrowSeries(String seriesName, ColorDefinition color,
+            LineStyle lineStyle, Collection<TimeGraphArrow> arrows) {
+        fSeriesName = seriesName;
+        fColor = color;
+        fLineStyle = lineStyle;
+        fArrows = ImmutableList.copyOf(arrows);
+    }
+
+    public String getSeriesName() {
+        return fSeriesName;
+    }
+
+    public ColorDefinition getColor() {
+        return fColor;
+    }
+
+    public LineStyle getLineStyle() {
+        return fLineStyle;
+    }
+
+    public Collection<TimeGraphArrow> getArrows() {
+        return fArrows;
+    }
+}
This page took 0.026663 seconds and 5 git commands to generate.