Ticket #601 (closed enhancement: fixed)
Opened 2011-06-14T09:03:12-05:00
Last modified 2011-06-20T11:58:48-05:00
Added ObjectsUpdatedEvent
Reported by: | gharris | Owned by: | gharris |
---|---|---|---|
Priority: | major | Milestone: |
|
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 2011-06-20T11:58:48-05:00 by gharris
- Status changed from new to closed
- Resolution set to fixed