5d42be997f24e06c04e5737829541c70bcde9e05
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
.latency
.model
;
14 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.distribution
.model
.IBaseDistributionModel
;
17 * <b><u>IGraphDataModel</u></b>
20 public interface IGraphDataModel
extends IBaseDistributionModel
{
23 * Add event to the correct bucket, compacting the if needed.
25 * @param eventCount - the event count
26 * @param timestamp - the timestamp (x-coordinate) of the event to count
27 * @param time - the time (y-coordinate) of the event to count
29 public void countEvent(int eventCount
, long timestamp
, long time
);
32 * Scale the model data to the width and height requested.
34 * @param width - width of graph
35 * @param height - height of graph
36 * @param barWidth - width of bar
37 * @return the result array of size [width] and where the highest value
38 * doesn't exceed [height]
40 public GraphScaledData
scaleTo(int width
, int height
, int barWidth
);
This page took 0.031362 seconds and 4 git commands to generate.