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 #390 (closed task: fixed)

Opened 2011-03-23T12:57:58-05:00

Last modified 2011-03-30T14:35:27-05:00

Make legacy layer reuse existing displays when possible

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej-2.0-alpha1
Component: Legacy Compatibility Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

When running plugins IJ2 hatches new image Windows where IJ1 may not. Modify the legacy layer to display a new window of an image only if the Dataset returned by the legacy plugin is not already being displayed elsewhere.

Change History

comment:1 Changed 2011-03-23T13:02:46-05:00 by bdezonia

Modify LegacyManager's behavior when overriding updateAndDraw(). The DisplayPostProcessor::handleOutput() method needs to reference a new DatasetManager. This manager should map Datasets to Displays. handleOutput() should be able to loop over the displays and see if current Dataset is shown there. If so then just do a refresh of the Display else hatch a new Display like now.

comment:2 Changed 2011-03-23T13:23:59-05:00 by bdezonia

  • Summary changed from Make legacy layer display images as IJ1 would to Make legacy layer reuse existing displays when possible

comment:3 Changed 2011-03-30T14:35:27-05:00 by bdezonia

  • Status changed from new to closed
  • Resolution set to fixed