public abstract class TreeViewerExtension extends TreeChangeListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeViewerExtension.Factory
The factory class that plugins provide via
GeneiousPlugin.getTreeViewerExtensionFactories()
for creating TreeViewerExtensions |
| Constructor and Description |
|---|
TreeViewerExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeChangedListener(TreeChangeListener listener)
Add a listener to be notified when the tree changes.
|
protected void |
fireSelectionChanged(TreeSelectionChangeEvent event)
A TreeViewerExtension should called this method to notify the tree viewer plug-in that it wants to
modify the set of selected nodes in the current tree.
|
protected void |
fireTreeChanged(TreeChangeEvent event)
A TreeViewerExtension should called this method to notify the tree viewer plug-in that it wants to
modify the tree being viewed.
|
abstract JPanel |
getPanel()
get the panel that appears in the tree viewer controls.
|
abstract String |
getPanelTitle()
Get the label that appears above the panel (returned from
getPanel()) in the tree viewer controls. |
void |
removeTreeChangedListener(TreeChangeListener listener)
Remove a listener previously added using
addTreeChangedListener(jebl.evolution.trees.TreeChangeListener). |
selectionChanged, treeChangedpublic abstract String getPanelTitle()
getPanel()) in the tree viewer controls.public abstract JPanel getPanel()
getPanelTitle()public final void addTreeChangedListener(TreeChangeListener listener)
listener - a listener to be notified when the tree changes.public final void removeTreeChangedListener(TreeChangeListener listener)
addTreeChangedListener(jebl.evolution.trees.TreeChangeListener).listener - a listener previously passed as a parameter to addTreeChangedListener(jebl.evolution.trees.TreeChangeListener).protected final void fireTreeChanged(TreeChangeEvent event)
event - an event which encapsulates the new tree. If a tree is being modified, the encapsulated tree
must be a modified copy of the original tree. Modifying the original tree is not allowed. Instead it
should first be duplicated using Utils.copyTree(jebl.evolution.trees.RootedTree).protected final void fireSelectionChanged(TreeSelectionChangeEvent event)
event - an event which encapsulates the nodes to be selected.