| /********************************************************************** |
| * Copyright (c) 2017 Ericsson |
| * |
| * All rights reserved. This program and the accompanying materials are |
| * made available under the terms of the Eclipse Public License 2.0 which |
| * accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| |
| package org.eclipse.tracecompass.internal.tmf.core.presentation; |
| |
| import org.eclipse.tracecompass.tmf.core.presentation.IYAppearance; |
| import org.eclipse.tracecompass.tmf.core.presentation.RGBAColor; |
| |
| /** |
| * This is a base implementation of {@link IYAppearance} |
| * |
| * @author Yonni Chen |
| * @since 3.1 |
| */ |
| public class YAppearance implements IYAppearance { |
| |
| private final String fName; |
| private final String fStyle; |
| private final String fType; |
| private final RGBAColor fColor; |
| private final int fWidth; |
| |
| /** |
| * Constructor |
| * |
| * @param name |
| * The Y series name |
| * @param type |
| * The Y series type |
| * @param style |
| * The Y series style |
| * @param color |
| * The Y series color |
| * @param width |
| * The Y series width |
| */ |
| public YAppearance(String name, String type, String style, RGBAColor color, int width) { |
| fName = name; |
| fStyle = style; |
| fType = type; |
| fColor = color; |
| fWidth = width; |
| } |
| |
| @Override |
| public String getName() { |
| return fName; |
| } |
| |
| @Override |
| public String getStyle() { |
| return fStyle; |
| } |
| |
| @Override |
| public RGBAColor getColor() { |
| return fColor; |
| } |
| |
| @Override |
| public String getType() { |
| return fType; |
| } |
| |
| @Override |
| public int getWidth() { |
| return fWidth; |
| } |
| } |