Commit | Line | Data |
---|---|---|
378e7718 WB |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009 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 | * William Bourque - Initial API and implementation | |
11 | *******************************************************************************/ | |
6e512b93 ASL |
12 | package org.eclipse.linuxtools.lttng.ui.views.histogram; |
13 | ||
378e7718 WB |
14 | /** |
15 | * <b><u>HistogramElement</u></b> | |
16 | * <p> | |
17 | * This is used by the content to keep its data. | |
18 | * It would be a struct if such a thing would exist in java. | |
19 | * <p> | |
050df4a5 | 20 | * Each "element" should represent a certain time interval |
378e7718 | 21 | */ |
6e512b93 | 22 | public class HistogramElement { |
1406f802 WB |
23 | public int index = 0; // Position of the element in the table (table index, obviously) |
24 | public long firstIntervalTimestamp = 0L; // The first timestamp recorded for this interval | |
25 | public long intervalNbEvents = 0L; // Number of events recorded in this interval | |
26 | public int intervalHeight = 0; // Height (in the canvas) of this element. Should be smaller than the canvas height. | |
6e512b93 | 27 | } |