Events and Listeners

Structural Changes

Interface IGraphListener notifies interested parties of structural graph changes. The information is conveyed using objects of type GraphEvent, and covers element insertion and removal as well as element modifications like, e.g., changing an edge's end nodes.

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

Figure 12.3. Context for using IGraphListener

Context for using IGraphListener.