Re: how do I determine when cursor is over a point Roi in an overlay?
Posted by
Herbie on
Dec 22, 2016; 10:43am
URL: http://imagej.273.s1.nabble.com/how-do-I-determine-when-cursor-is-over-a-point-Roi-in-an-overlay-tp5017801p5017807.html
Good day Jon,
of course that's to the point, but why not simply copy the approach
applied by ImageJ? The source code is available!
Hopefully you may find the answer here:
<
https://imagej.nih.gov/ij/source/ij/gui/ImageCanvas.java>
Best
Herbie
:::::::::::::::::::::::::::::::::::::::
Am 21.12.16 um 19:52 schrieb JonNathan:
> Hi Herbie,
>
> Thanks for your suggestion. My only issue with doing a comparison as you
> suggest is that the cursor is only rarely over the *exact* pixel in a point
> selection, whereas the behavior I'd like to replicate is capturing an event
> when the cursor is appropriately *near* the point selection. Just so the
> user doesn't have to "hunt down" the exact pixel. I could probably just
> define a radius around the point selection and proceed from there, but I'd
> rather not reinvent the wheel if something easier exists in ImageJ's current
> API.
>
> Cheers,
>
> Jon
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/how-do-I-determine-when-cursor-is-over-a-point-Roi-in-an-overlay-tp5017801p5017803.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html