org.annotation.agschema.graphics.vtree
Interface VTreeExpansionListener

All Known Implementing Classes:
BoundedSubtreeUI

public interface VTreeExpansionListener

Listen for expansion events. For very large trees, it may be undesirable to show the whole tree at once, and the user may want to draw hide a subtree temporarily.

Author:
nikhild

Method Summary
 void nodeCollapsed(VTreeExpansionState state, javax.swing.tree.TreeNode node)
          Notification that a node has collapsed, and from the perspective of viewing, it is now a leaf.
 void nodeExpanded(VTreeExpansionState state, javax.swing.tree.TreeNode node)
          Notification that a node has expanded, and from the perspective of viewing, all its children will be displayed.
 

Method Detail

nodeCollapsed

public void nodeCollapsed(VTreeExpansionState state,
                          javax.swing.tree.TreeNode node)
Notification that a node has collapsed, and from the perspective of viewing, it is now a leaf.

Parameters:
state - the expansion/collapse state of various nodes in the tree.
node - the node which has been collapsed

nodeExpanded

public void nodeExpanded(VTreeExpansionState state,
                         javax.swing.tree.TreeNode node)
Notification that a node has expanded, and from the perspective of viewing, all its children will be displayed.

Parameters:
state - the expansion/collapse state of various nodes in the tree.
node - the node which has been expanded.