Ticket #633 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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:
Blocking:

Description

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 8 years ago by gharris

This related to #616 Handle the deletion of Displays.

comment:2 Changed 8 years ago by gharris

comment:3 Changed 8 years ago by gharris

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

comment:4 Changed 8 years ago 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.

Note: See TracTickets for help on using tickets.