Login  Register

Re: ImageJ toolbar

Posted by dscho on Jan 17, 2007; 3:41pm
URL: http://imagej.273.s1.nabble.com/ImageJ-toolbar-tp3700580p3700582.html

Hi,

On Wed, 17 Jan 2007, Jeffrey B. Woodward wrote:

> I have a plugin in which I attach a mouse listener to the canvas looking
> for mouse clicked events; however, it really only makes sense to take
> action if the "Point Selections" tool is active.

        import ij.gui.Toolbar;

        ...

                if (Toolbar.getToolId() == Toolbar.POINT) {
                        ...
                }

Hth,
Dscho