tmf: Update Javadoc throughout tmf.ui
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / widgets / TimeGraphItem.java
1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
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 * Contributors:
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
12
13 package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.widgets;
14
15 import java.util.ArrayList;
16 import java.util.List;
17
18 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
19
20 /**
21 * Item in the generic time graph view
22 *
23 * @version 1.0
24 * @author Patrick Tasse
25 */
26 public class TimeGraphItem {
27 public boolean _expanded;
28 public boolean _selected;
29 public boolean _hasChildren;
30 public int itemHeight;
31 public int level;
32 public List<TimeGraphItem> children;
33 public String _name;
34 public ITimeGraphEntry _trace;
35
36 public TimeGraphItem(ITimeGraphEntry trace, String name, int level) {
37 this._trace = trace;
38 this._name = name;
39 this.level = level;
40 this.children = new ArrayList<TimeGraphItem>();
41 }
42
43 @Override
44 public String toString() {
45 return _name;
46 }
47 }
This page took 0.030552 seconds and 5 git commands to generate.