Where to Find Up-to-date yFiles Information

This page is from the outdated yFiles for Java 2.13 documentation. You can find the most up-to-date documentation for all yFiles products on the yFiles documentation overview page.

Please see the following links for more information about the yFiles product family of diagramming programming libraries and corresponding yFiles products for modern web apps, for cross-platform Java(FX) applications, and for applications for the Microsoft .NET environment.

More about the yFiles product family Close X

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.