Events and Listeners

Hierarchy Changes

Interface HierarchyListener notifies interested parties of changes in a grouped graph. The information is conveyed using objects of type HierarchyEvent, and covers changes that relate to hierarchy level modifications of graph elements.

To receive notifications, HierarchyListener implementations have to be properly registered with a HierarchyManager object. Figure 7.7, “Context for using HierarchyListener” gives an overview on interface HierarchyListener's role.

Figure 7.7. Context for using HierarchyListener

Context for using HierarchyListener.

Class DefaultNodeChangePropagator can additionally be registered with the root graph of a grouped graph to notify interested parties of node label changes and changes of the realizer delegate of a group node/folder node.

Figure 7.8. Context for using DefaultNodeChangePropagator

Context for using DefaultNodeChangePropagator.