Interface IHistogramDataModel

All Superinterfaces:
IBaseDistributionModel
All Known Implementing Classes:
HistogramDataModel

public interface IHistogramDataModel extends IBaseDistributionModel
Histogram data model interface.
Author:
Bernd Hufmann
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    countEvent(long eventCount, long timestamp, ITmfTrace trace)
    Add event to the correct bucket, compacting the if needed.
    scaleTo(int width, int height, int barWidth)
    Scale the model data to the width, height and bar width requested.

    Methods inherited from interface org.eclipse.tracecompass.tmf.ui.views.distribution.model.IBaseDistributionModel

    clear, complete
  • Method Details

    • countEvent

      void countEvent(long eventCount, long timestamp, ITmfTrace trace)
      Add event to the correct bucket, compacting the if needed.
      Parameters:
      eventCount - the event to count
      timestamp - the timestamp of the event to count
      trace - the trace corresponding to given events
    • scaleTo

      HistogramScaledData scaleTo(int width, int height, int barWidth)
      Scale the model data to the width, height and bar width requested.
      Parameters:
      width - A width of the histogram canvas
      height - A height of the histogram canvas
      barWidth - A width (in pixel) of a histogram bar
      Returns:
      the result array of size [width] and where the highest value doesn't exceed [height] while considering the bar width [barWidth]