blob: 864fbe4ae8b4d36d17e369a2e83d0496b5a730d9 [file] [log] [blame]
/*******************************************************************************
* 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
*
* Contributors:
* Patrick Tasse - Initial API and implementation
*******************************************************************************/
package org.eclipse.tracecompass.internal.tmf.core.markers;
/**
* Model element for periodic marker segment.
*/
public class MarkerSegment extends Marker {
private final String fLabel;
private final String fId;
private final int fLength;
/**
* Constructor
*
* @param label
* the label
* @param id
* the id
* @param color
* the color
* @param length
* the length
*/
public MarkerSegment(String label, String id, String color, int length) {
super(null, color);
fLabel = label;
fId = id;
fLength = length;
}
/**
* @return the label
*/
public String getLabel() {
return fLabel;
}
/**
* @return the id
*/
public String getId() {
return fId;
}
/**
* @return the length
*/
public int getLength() {
return fLength;
}
}