Login  Register

Re: Roi listener

Posted by Michael Schmid on Jul 02, 2009; 12:52pm
URL: http://imagej.273.s1.nabble.com/Roi-listener-tp3691936p3691939.html

Hi Michael,

you have to add listeners to mousePressed, mouseDragged, mouseClicked  
and keyPressed events of the ImageCanvas. See the dynamic profiler  
for an example.
   http://rsb.info.nih.gov/ij/plugins/download/Dynamic_Profiler.java

Michael
________________________________________________________________

On 2 Jul 2009, at 14:45, Michael Strupp wrote:

> Hello ImageJ Community
>
> I'm looking for a way to handle Roi Events.
> Are there any listeners that throw an event, when the user resizes  
> a Roi, he made before on an image?
>
> When there is no listener for that, how can I handle this problem?
>
> Kind regards,
> Michael