org.annotation.agschema.graphics.vtree
Interface TreeMutationListener

All Known Implementing Classes:
BoundedSubtreeUI

public interface TreeMutationListener

Listens for mutations of a tree. For now only MutableTreeNodes can have mutation events, but this is worth reconsidering, since that interface can be a pain to implement.

Author:
nikhild

Method Summary
 void childAdded(javax.swing.tree.MutableTreeNode parent, int index)
           
 void childRemoved(javax.swing.tree.MutableTreeNode parent, javax.swing.tree.MutableTreeNode child, int oldChildIndex)
           
 void nodeObjectChanged(javax.swing.tree.MutableTreeNode node, java.lang.Object oldUserObject)
           
 void rootChanged(javax.swing.tree.TreeNode newRoot, javax.swing.tree.TreeNode oldRoot)
           
 void subtreeDamaged(javax.swing.tree.MutableTreeNode subtreeRoot)
           
 

Method Detail

childAdded

public void childAdded(javax.swing.tree.MutableTreeNode parent,
                       int index)

childRemoved

public void childRemoved(javax.swing.tree.MutableTreeNode parent,
                         javax.swing.tree.MutableTreeNode child,
                         int oldChildIndex)

nodeObjectChanged

public void nodeObjectChanged(javax.swing.tree.MutableTreeNode node,
                              java.lang.Object oldUserObject)

subtreeDamaged

public void subtreeDamaged(javax.swing.tree.MutableTreeNode subtreeRoot)

rootChanged

public void rootChanged(javax.swing.tree.TreeNode newRoot,
                        javax.swing.tree.TreeNode oldRoot)