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 #1022 (closed defect: fixed)

Opened 2012-02-27T16:10:54-06:00

Last modified 2012-03-26T10:49:07-05:00

Remove the Selection Tool

Reported by: dscho Owned by: dscho
Priority: major Milestone: imagej2-b1-initial
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #878

Description

ImageJ 1.* does not have a selection tool: when the user hovers drags a handle, the corresponding selection is modified, when the user clicks & drags somewhere else in the selection, the whole selection is moved.

Add a DelegationTool that uses JHotDraw to detect when the mouse cursor is hovering above a selection or selection handle and transparently hands off to the SelectionTool in that case; otherwise, a new selection is added or replaces the complete selection, depending whether the Shift key is pressed (add) or not (replace).

There is a third mode in ImageJ 1.*, unfortunately: holding down the Alt key when selecting something removes that part from the existing selection. The problem is that this can modify the type of the selection: a rectangle from which a part is been removed is very unlikely to be a rectangle still. See #878 for details.

Change History

comment:1 Changed 2012-02-27T16:12:06-06:00 by dscho

  • Component changed from other to ij-display

comment:2 Changed 2012-02-27T22:33:19-06:00 by dscho

  • Status changed from new to accepted

comment:3 Changed 2012-03-02T17:59:52-06:00 by dscho

The first part of this is now committed.

The Alt key handling needs #878 to be addressed first, though.

comment:4 Changed 2012-03-26T10:48:29-05:00 by curtis

  • Blocked By 878 removed

comment:4 Changed 2012-03-26T10:49:07-05:00 by curtis

  • Status changed from accepted to closed
  • Resolution set to fixed
  • Blocking 878 added

Selection tool is successfully eliminated. Alt key will not work until subtracting ROIs works (see ticket #878). But there is nothing left to do for this specific ticket.