Package jebl.evolution.trees
Class TreeChangeListener
java.lang.Object
jebl.evolution.trees.TreeChangeListener
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
selectionChanged
(TreeSelectionChangeEvent treeChangeEvent) The selected nodes in the tree have changed.abstract void
treeChanged
(TreeChangeEvent treeChangeEvent) The tree has changed.
-
Constructor Details
-
TreeChangeListener
public TreeChangeListener()
-
-
Method Details
-
treeChanged
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 usingUtils.copyTree(RootedTree)
andUtils.rootTheTree(Tree)
orUtils.rootTreeAtCenter(Tree)
if necessary before changes are made.- Parameters:
treeChangeEvent
- the changed tree.
-
selectionChanged
The selected nodes in the tree have changed.- Parameters:
treeChangeEvent
- the new set of selected nodes.
-