1 /*******************************************************************************
2 * Copyright (c) 2016 EfficiOS Inc., Alexandre Montplaisir
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 *******************************************************************************/
10 package org
.lttng
.scope
.tmf2
.views
.core
.timegraph
.model
.provider
.statesystem
;
12 import java
.util
.List
;
14 import org
.lttng
.scope
.tmf2
.views
.core
.timegraph
.model
.render
.tree
.TimeGraphTreeElement
;
17 * Implementation of a {@link TimeGraphTreeElement} specific for use by
18 * {@link StateSystemModelProvider}. It links a state system quark to the tree
21 * @author Alexandre Montplaisir
23 public class StateSystemTimeGraphTreeElement
extends TimeGraphTreeElement
{
25 private final int fSourceQuark
;
31 * The name this tree element should have.
33 * The children tree elements. You can pass an empty list for no
36 * The state system quark wrapped by this tree element
38 public StateSystemTimeGraphTreeElement(String name
,
39 List
<TimeGraphTreeElement
> children
,
41 super(name
, children
);
42 fSourceQuark
= sourceQuark
;
46 * Get the quark wrapped by this tree element.
48 * @return The source quark
50 public int getSourceQuark() {