jebl.evolution.trees
Class TreeChangeListener

java.lang.Object
  extended by jebl.evolution.trees.TreeChangeListener

public abstract class TreeChangeListener
extends java.lang.Object

A listener for notifying about changes to a tree or to the selected nodes in a tree.

Version:
$Id: TreeChangeListener.java 913 2008-05-22 04:53:39Z matt_kearse $
Author:
Matt Kearse

Constructor Summary
TreeChangeListener()
           
 
Method Summary
abstract  void selectionChanged(TreeSelectionChangeEvent treeChangeEvent)
          The selected nodes in the tree have changed.
abstract  void treeChanged(TreeChangeEvent treeChangeEvent)
          The tree has changed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeChangeListener

public TreeChangeListener()
Method Detail

treeChanged

public abstract void treeChanged(TreeChangeEvent treeChangeEvent)
The tree has changed. The tree contained in the TreeChangeEvent must not be the original tree. Instead it must be a new instance of a tree, first cloned using Utils.copyTree(RootedTree) and Utils.rootTheTree(Tree) or Utils.rootTreeAtCenter(Tree) if necessary before changes are made.

Parameters:
treeChangeEvent - the changed tree.

selectionChanged

public abstract void selectionChanged(TreeSelectionChangeEvent treeChangeEvent)
The selected nodes in the tree have changed.

Parameters:
treeChangeEvent - the new set of selected nodes.


http://code.google.com/p/jebl2/