divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Separate hit testing and mouse handling in pie charts #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the computation which slice is at a given point in a pie chart is 
tightly coupled with the mouse-down-event in the pointingDeviceDownEvent 
method. The attached patch separates this into two methods. This way users of 
the pie chart can take advantage of the internal computation for other tasks 
like using it in mouse-move-events on OS X.

Original issue reported on code.google.com by mike.lischke on 27 Dec 2011 at 1:57

GoogleCodeExporter commented 9 years ago
All plot types should support similar capabilities.

Original comment by eskr...@mac.com on 27 Dec 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Point conversion to the plotarea was at the wrong place, so I had to replace 
the patch.

In general there should be a hitTest method that returns the plot part for a 
given point, which could include labels, bars, slices, axes, ticks etc. etc. 
But this is a bigger task....

Original comment by mike.lischke on 27 Dec 2011 at 10:53

GoogleCodeExporter commented 9 years ago
Yes--related to issue 361.

Original comment by eskr...@mac.com on 28 Dec 2011 at 1:38

GoogleCodeExporter commented 9 years ago
Here's the patch again modified for the latest core-plot changes.

Original comment by mike.lischke on 5 Apr 2012 at 8:19

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 6 Apr 2012 at 12:42

GoogleCodeExporter commented 9 years ago
This issue was closed by revision be0058e02108.

Original comment by eskr...@mac.com on 16 Apr 2012 at 12:30