1 /*******************************************************************************
2 * Copyright (c) 2011 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.lttng
.ui
.views
.histogram
;
15 * <b><u>IHistogramDataModel</u></b>
18 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.distribution
.model
.IBaseDistributionModel
;
20 public interface IHistogramDataModel
extends IBaseDistributionModel
{
22 * Add event to the correct bucket, compacting the if needed.
24 * @param timestamp the timestamp of the event to count
26 public void countEvent(long eventCount
, long timestamp
);
29 * Scale the model data to the width, height and bar width requested.
34 * @return the result array of size [width] and where the highest value
35 * doesn't exceed [height] considering the bar width [barWidth]
37 public HistogramScaledData
scaleTo(int width
, int height
, int barWidth
);
This page took 0.032832 seconds and 5 git commands to generate.