NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #690 (closed defect: fixed)

Opened 2011-07-26T13:31:56-05:00

Last modified 2011-08-01T13:40:08-05:00

Rectangle overlay tool doesn't work after first rectangle is drawn

Reported by: leek Owned by: leek
Priority: major Milestone: imagej-2.0-alpha5
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

The old behavior: press rectangle tool, draw rectangle, rectangle tool disables itself. The new behavior: press rectangle tool, draw rectangle, rectangle tool button pops out but remains blue, hover over button and it depresses, try to draw rectangle, you get a selection instead.

Change History

comment:1 Changed 2011-07-26T16:29:30-05:00 by curtis

If you click to the selection tool and back to the rectangle tool, it is possible to draw another rectangle. But you must do this each time. I'm not sure when the behavior changed.

comment:2 Changed 2011-08-01T13:40:08-05:00 by leek

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from bio-formats to ij-ui

It turns out you need to get the selection tool from the toolbar. Luckily someone just added a store of instantiated tools to the ToolService, so I pulled the selection tool from there. I also added a convenience method to find a tool from the tool service given a class name and magic templates to cast it to the right class.