y.view.hierarchy
Class GroupNodeRealizer.StateChangeListener

java.lang.Object
  |
  +--y.view.hierarchy.GroupNodeRealizer.StateChangeListener
All Implemented Interfaces:
EventListener, HierarchyListener
Enclosing class:
GroupNodeRealizer

public static class GroupNodeRealizer.StateChangeListener
extends Object
implements HierarchyListener

This static inner class can be used to automatically adjust the groupClosed property of GroupNodeRealizer instances. Add this HierarchyListener implementation to the respective HierarchyManager instances and changes of the group nodes' states will be automatically reflected by the groupClosed property. This implementation works together with both GroupNodeRealizer implementations and CompositeNodeRealizer instances that contain an open (index 0) and a closed (index 1) variant at the same time.


Constructor Summary
GroupNodeRealizer.StateChangeListener()
          Creates a new (unbound) instance of GroupNodeSynchronizer
 
Method Summary
 void hierarchyChange(HierarchyEvent e)
          Invoked when the structure of a graph hierarchy changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupNodeRealizer.StateChangeListener

public GroupNodeRealizer.StateChangeListener()
Creates a new (unbound) instance of GroupNodeSynchronizer

Method Detail

hierarchyChange

public void hierarchyChange(HierarchyEvent e)
Description copied from interface: HierarchyListener
Invoked when the structure of a graph hierarchy changes.

Specified by:
hierarchyChange in interface HierarchyListener

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003