Login  Register

how do I determine when cursor is over a point Roi in an overlay?

Posted by JonNathan on Dec 21, 2016; 6:15pm
URL: http://imagej.273.s1.nabble.com/how-do-I-determine-when-cursor-is-over-a-point-Roi-in-an-overlay-tp5017801.html

I'm writing a Java plugin in which I'd like to be able to dynamically detect when the cursor is directly over an Roi label in an overlay.  I know ImageJ is already doing this behind the scenes, because if I have an image with an overlay consisting of several point Roi's, the cursor changes from a cross to a "hand" if I'm over any of the point selections (indicating the underlying point Roi can be moved).  I can't seem to find the right EventListener to detect this kind of change.

Any hints on how to track this kind of event?

Thanks in advance,

Jon Marsh