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

Opened 2011-06-24T08:48:58-05:00

Last modified 2011-07-05T10:11:54-05:00

Change DisplayManager to Mediate Display/WinEvents

Reported by: gharris Owned by: gharris
Priority: major Milestone: biweekly-2011: Jun-20 to Jul-01
Component: Display API Version:
Severity: serious Keywords:
Cc: Blocked By:


Modify DisplayManager to mediate DisplayEvents (and perhaps WinEvents) and publish an event type for Display Activated (or Changed) to be used by components that monitor display state, such as the Window menu or a ROI Manager.
This removes some code from SwingImageDisplay.

Change History

comment:1 Changed 2011-06-24T08:49:58-05:00 by gharris

This related to #616 Handle the deletion of Displays.

comment:2 Changed 2011-06-24T08:50:45-05:00 by gharris

comment:3 Changed 2011-06-28T14:43:04-05:00 by gharris

  • Owner changed from curtis to gharris
  • Status changed from new to assigned

comment:4 Changed 2011-07-05T10:11:54-05:00 by gharris

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone changed from biweekly-2011: Jul-05 to Jul-15 to biweekly-2011: Jun-20 to Jul-01

Added imagej.display.event.DisplaySelectedEvent which extends DisplayEvent.

DisplayManager modified so that upon receiving a WinActivatedEvent, is sets the active display and publishes a DisplaySelectedEvent.

In SwingImageDisplay, added
List<EventSubscriber<?>> subscribers;
and subscribeToEvents() method is invoked on construction.

imagej.ui.swing.plugins WatchDisplays and WatchOverlays use DisplaySelectedEvent to correctly update their status.