Implement simultaneously opened traces in TMF
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / histogram / IHistogramDataModel.java
CommitLineData
fbd124dd 1/*******************************************************************************
e0752744 2 * Copyright (c) 2011, 2012 Ericsson
fbd124dd
BH
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
e0752744 11 * Francois Chouinard - Moved from LTTng to TMF
fbd124dd 12 *******************************************************************************/
e0752744
FC
13
14package org.eclipse.linuxtools.tmf.ui.views.histogram;
15
16import org.eclipse.linuxtools.tmf.ui.views.distribution.model.IBaseDistributionModel;
fbd124dd
BH
17
18/**
b544077e
BH
19 * Histogram data model interface.
20 *
21 * @version 1.0
22 * @author Bernd Hufmann
fbd124dd 23 */
fbd124dd
BH
24public interface IHistogramDataModel extends IBaseDistributionModel {
25 /**
26 * Add event to the correct bucket, compacting the if needed.
27 *
b544077e 28 * @param eventCount the event to count
fbd124dd
BH
29 * @param timestamp the timestamp of the event to count
30 */
31 public void countEvent(long eventCount, long timestamp);
fbd124dd
BH
32 /**
33 * Scale the model data to the width, height and bar width requested.
b544077e
BH
34 *
35 * @param width A width of the histogram canvas
36 * @param height A height of the histogram canvas
37 * @param barWidth A width (in pixel) of a histogram bar
38 * @return the result array of size [width] and where the highest value doesn't exceed [height]
39 * while considering the bar width [barWidth]
fbd124dd
BH
40 */
41 public HistogramScaledData scaleTo(int width, int height, int barWidth);
e0752744 42
fbd124dd 43}
This page took 0.033275 seconds and 5 git commands to generate.