Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315889

Summary: [LTTng] HistogramView improvements
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Histogram patch fchouinard: iplog+

Description Francois Chouinard CLA 2010-06-05 15:21:31 EDT
This bug covers the improvements to the HistogramView that won't be part of the 0.6 release.
Comment 1 Yuriy Vashchuk CLA 2010-07-13 11:18:07 EDT
Created attachment 174163 [details]
Histogram patch

The null verification has been added to the displayModel (ControlFlowView.java) function.
To prevent the Null Pointer Exception caused by clicking on Control Flow with no active experiment.

The null verification has been added to the notifyParentUpdatedInformation (ChildrenHistogramCanvas.java) function.
To prevent the Null Pointer Exception caused by clicking on Child Histogram with no active experiment.

The null verification has been added to the asynchronousRedraw, asynchronousNotifyParentSelectionWindowChanged, asynchronousNotifyParentUpdatedInformation (HistogramCanvas.java) functions.
To prevent the Null Pointer Exception caused by clicking on Histograms with no active experiment.

The null verification has been added to the mouseMove, mouseDown, mouseUp, receiveMouseScrollCount (HistogramCanvasMouseListener.java) functions.
To prevent the Null Pointer Exception caused by clicking on Full Histogram with no active experiment.

The null verification has been added to the updateSelectedWindowTimestamp, updateSelectedWindowInformation, updateFullExperimentInformation, timeTextGroupChangeNotification, windowChangedNotification, performSelectedWindowEventsRequest, currentTimeUpdated (HistogramView.java) functions.
To prevent the Null Pointer Exceptions.

The recalculateElementsTimeInterval function call has been removed from resetTable (HistogramVontent.java) because il already called in resetTable function.

The Histogram Heritage model has been improved: the listeners have been moved from base class (HistogramCanvas) to child classes (ChildrenHistogramCanvas and ParentHistogramCanvas). The not used listeners have been eliminated in Child Histogram such as: MouseListener, Focus Listener, Key Listener.
Improvements

The Histogram Canvas Control Listeners Heritage model has been improved: the new ParentHistogramCanvasControlListener class related to the Full Histogram Canvas Control Listener has been added. It contents the setWindowCenterPosition in controlResized which has been removed from HistogramCanvasControlListener related to the small diagram which does not have the selection window.

The Histogram View UI has been improved: the dynamic height has been added to Full Histogram; the histograms and the time range controls and indicators position have been changed for reason to use full window space; the code has been optimized and regrouped to ease the future corrections and comprehension.
Comment 2 Francois Chouinard CLA 2010-07-13 11:48:52 EDT
Comment on attachment 174163 [details]
Histogram patch

Patch committed
Comment 3 Francois Chouinard CLA 2010-07-13 11:49:13 EDT
Fixed
Comment 4 Francois Chouinard CLA 2011-07-22 14:35:13 EDT
Delivered with 0.7