import org.eclipse.swt.widgets.Composite;
/**
- * <b><u>HistogramView</u></b>
- * <p>
* The purpose of this view is to provide graphical time distribution statistics about the experiment/trace events.
* <p>
* The view is composed of two histograms and two controls:
* <li>the window span (size of the time window of the smaller histogram).
* </ul>
* The histograms x-axis show their respective time range.
+ *
+ * @version 1.0
+ * @author Francois Chouinard
*/
public class HistogramView extends TmfView {
fCurrentEventTimeControl.setValue(fExperimentStartTime);
fTimeSpanControl.setValue(fWindowSpan);
- sendTimeRangeRequest(fExperimentStartTime, fExperimentStartTime + fWindowSpan);
- sendFullRangeRequest(fullRange);
+ if (!fullRange.equals(TmfTimeRange.NULL_RANGE)) {
+ sendTimeRangeRequest(fExperimentStartTime, fExperimentStartTime + fWindowSpan);
+ sendFullRangeRequest(fullRange);
+ }
}
private TmfTimeRange updateExperimentTimeRange(TmfExperiment<ITmfEvent> experiment) {
if (fFullTraceRequest != null && !fFullTraceRequest.isCompleted()) {
fFullTraceRequest.cancel();
}
- if (fullRange.equals(TmfTimeRange.NULL_RANGE)) {
- return;
- }
int cacheSize = fCurrentExperiment.getCacheSize();
fFullTraceRequest = new HistogramRequest(fFullTraceHistogram.getDataModel(), fullRange, (int) fFullTraceHistogram.fDataModel.getNbEvents(),
TmfDataRequest.ALL_DATA, cacheSize, ExecutionType.BACKGROUND);