Ticket #601 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Added ObjectsUpdatedEvent

Reported by: gharris Owned by: gharris
Priority: major Milestone: biweekly-2011: Jun-06 to Jun-17
Component: Event Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

I have been exploring how to implement a dynamic list of objects, such as Displays, DisplayViews, Datasets, and Overlays.
For instance, keeping track of the windows/displays that are open in order to implement a dynamic Window menu. This would also apply to a ROI/Overlay Manager type of thing.

In the process it became clear that the sequence and timing events did not provide a way to do this.

So, I created a new event used to notify subscribers that the collection of objects in the ObjectManager has changed: ObjectsUpdatedEvent (extends ObjectEvent)

And I changed ObjectManager to publish(new ObjectsUpdatedEvent(obj)) after an addObject or removeObject. This should fire after the actual addition or removal of the object from the manager.

Also I found that on window closed, the display was not deleted from display manager, so I added Events.publish(new DisplayDeletedEvent(thisDisplay));
to windowClosed() in SwingImageDisplay.

Change History

comment:1 Changed 8 years ago by gharris

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.