PlotWindow Mouse moved

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PlotWindow Mouse moved

Gerhard-5
Hello,
does anyone know how I can retrieve the current X and Y values in a
PlotWindow when the mouse is moved over a plot.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: PlotWindow Mouse moved

A. Khiat
Hello,
does anyone know how I can unsubscribe from IMAGEJ list.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: PlotWindow Mouse moved

dscho
Hi,

On Fri, 26 Jan 2007, Abdesslem Khiat wrote:

> does anyone know how I can unsubscribe from IMAGEJ list.

Yes.

For one, you did find information how to subscribe to this list? Yes, you
are subscribed. As it happens, on the same page, it is described how to
unsubscribe.

Besides, the _first_ hit Googling for "unsubscribe imagej" is the correct
page.

<sarcasm>I think I will soon make this a automatic daily post, since so
many people keep asking this question.</sarcasm>

Ciao,
Dscho
Reply | Threaded
Open this post in threaded view
|

Re: PlotWindow Mouse moved

Gerhard-5
In reply to this post by Gerhard-5
Wayne Rasband wrote:

>> Hello,
>> does anyone know how I can retrieve the current X and Y values in a
>> PlotWindow when the mouse is moved over a plot.
>
>
> In a plugin you can us code something like this (untested):
>
>     ImageCanvas ic = imp.getCanvas();
>     Point p = ic.getCursorLoc();
>     Calibration cal = imp.getCalibration();
>     double x = cal.getX(p.x);
>     double y = cal.getY(p.y, imp.getHeight());
>
> -wayne
>
Thanks Wayne,
Reading through the code I think this is not exactly what I need.
I need the X and Y Values shown at the bottom of the PlotWindow when the
mouse is moved over the plot.
This two values are depending on the limits set for the plot.

Thanks
Gerhard