~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/IHistogramDataModel.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*******************************************************************************
2
 
 * Copyright (c) 2011, 2012 Ericsson
3
 
 * 
 
2
 * Copyright (c) 2011, 2013 Ericsson
 
3
 *
4
4
 * All rights reserved. This program and the accompanying materials are
5
5
 * made available under the terms of the Eclipse Public License v1.0 which
6
6
 * accompanies this distribution, and is available at
7
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 
 * 
 
8
 *
9
9
 * Contributors:
10
10
 *   Bernd Hufmann - Initial API and implementation
11
11
 *   Francois Chouinard - Moved from LTTng to TMF
17
17
 
18
18
/**
19
19
 * Histogram data model interface.
20
 
 * 
 
20
 *
21
21
 * @version 1.0
22
22
 * @author Bernd Hufmann
23
23
 */
24
24
public interface IHistogramDataModel extends IBaseDistributionModel {
25
25
    /**
26
26
     * Add event to the correct bucket, compacting the if needed.
27
 
     * 
28
 
     * @param eventCount the event to count 
 
27
     *
 
28
     * @param eventCount the event to count
29
29
     * @param timestamp the timestamp of the event to count
30
30
     */
31
 
    public void countEvent(long eventCount, long timestamp);
 
31
    void countEvent(long eventCount, long timestamp);
32
32
    /**
33
33
     * Scale the model data to the width, height and bar width requested.
34
34
     *
38
38
     * @return the result array of size [width] and where the highest value doesn't exceed [height]
39
39
     *         while considering the bar width [barWidth]
40
40
     */
41
 
    public HistogramScaledData scaleTo(int width, int height, int barWidth);
 
41
    HistogramScaledData scaleTo(int width, int height, int barWidth);
42
42
 
43
43
}