(no commit message)
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / histogram / HistogramElement.java
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 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.histogram;
13
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>
20 * Each "element" should represent a certain time interval
21 */
22 public class HistogramElement {
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.
27 }
This page took 0.033159 seconds and 5 git commands to generate.