Fix for Histogram widget minor display issues.
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / histogram / IHistogramDataModel.java
1 /*******************************************************************************
2 * Copyright (c) 2011 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 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org.eclipse.linuxtools.lttng.ui.views.histogram;
13
14 /**
15 * <b><u>IHistogramDataModel</u></b>
16 * <p>
17 */
18 import org.eclipse.linuxtools.lttng.ui.views.distribution.model.IBaseDistributionModel;
19
20 public interface IHistogramDataModel extends IBaseDistributionModel {
21 /**
22 * Add event to the correct bucket, compacting the if needed.
23 *
24 * @param timestamp the timestamp of the event to count
25 */
26 public void countEvent(long eventCount, long timestamp);
27
28 /**
29 * Scale the model data to the width, height and bar width requested.
30 *
31 * @param width
32 * @param height
33 * @param bar width
34 * @return the result array of size [width] and where the highest value
35 * doesn't exceed [height] considering the bar width [barWidth]
36 */
37 public HistogramScaledData scaleTo(int width, int height, int barWidth);
38 }
This page took 0.030733 seconds and 5 git commands to generate.