| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir |
| 3 | * |
| 4 | * All rights reserved. This program and the accompanying materials are |
| 5 | * made available under the terms of the Eclipse Public License v1.0 which |
| 6 | * accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | *******************************************************************************/ |
| 9 | |
| 10 | package org.eclipse.tracecompass.internal.provisional.tmf.core.views.timegraph2; |
| 11 | |
| 12 | import java.util.Collection; |
| 13 | |
| 14 | import com.google.common.collect.ImmutableList; |
| 15 | |
| 16 | public class TimeGraphArrowSeries { |
| 17 | |
| 18 | public enum LineStyle { |
| 19 | FULL, |
| 20 | DOTTED, |
| 21 | DASHED; |
| 22 | } |
| 23 | |
| 24 | private final String fSeriesName; |
| 25 | private final ColorDefinition fColor; |
| 26 | private final LineStyle fLineStyle; |
| 27 | private final Collection<TimeGraphArrow> fArrows; |
| 28 | |
| 29 | public TimeGraphArrowSeries(String seriesName, ColorDefinition color, |
| 30 | LineStyle lineStyle, Collection<TimeGraphArrow> arrows) { |
| 31 | fSeriesName = seriesName; |
| 32 | fColor = color; |
| 33 | fLineStyle = lineStyle; |
| 34 | fArrows = ImmutableList.copyOf(arrows); |
| 35 | } |
| 36 | |
| 37 | public String getSeriesName() { |
| 38 | return fSeriesName; |
| 39 | } |
| 40 | |
| 41 | public ColorDefinition getColor() { |
| 42 | return fColor; |
| 43 | } |
| 44 | |
| 45 | public LineStyle getLineStyle() { |
| 46 | return fLineStyle; |
| 47 | } |
| 48 | |
| 49 | public Collection<TimeGraphArrow> getArrows() { |
| 50 | return fArrows; |
| 51 | } |
| 52 | } |