Interface IHistogramDataModel
- All Superinterfaces:
IBaseDistributionModel
- All Known Implementing Classes:
HistogramDataModel
Histogram data model interface.
- Author:
- Bernd Hufmann
-
Method Summary
Modifier and TypeMethodDescriptionvoidcountEvent(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
Add event to the correct bucket, compacting the if needed.- Parameters:
eventCount- the event to counttimestamp- the timestamp of the event to counttrace- the trace corresponding to given events
-
scaleTo
Scale the model data to the width, height and bar width requested.- Parameters:
width- A width of the histogram canvasheight- A height of the histogram canvasbarWidth- 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]
-