From: amwaterhouse Date: Wed, 13 Apr 2005 16:36:18 +0000 (+0000) Subject: getTree method added X-Git-Tag: Release_2_0~432 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2bce008bf6a7cdd574baa767acef76939ea1aff8;p=jalview.git getTree method added --- diff --git a/src/jalview/gui/TreePanel.java b/src/jalview/gui/TreePanel.java index eb0123f..9f9e327 100755 --- a/src/jalview/gui/TreePanel.java +++ b/src/jalview/gui/TreePanel.java @@ -29,6 +29,10 @@ public class TreePanel extends GTreePanel TreeCanvas treeCanvas; NJTree tree; + public NJTree getTree() + { + return tree; + } public TreePanel(AlignViewport av, Vector seqVector, String type, String pwtype, int s, int e) { @@ -50,7 +54,6 @@ public class TreePanel extends GTreePanel } tree = new NJTree(seq, type, pwtype, start, end); - av.setCurrentTree(tree); treeCanvas = new TreeCanvas(av, tree, scrollPane, longestName); @@ -80,8 +83,6 @@ public class TreePanel extends GTreePanel } // This constructor matches sequence names to treenodes and sets up the tree layouts. tree = new NJTree(seq, newtree); - av.setCurrentTree(tree); - tree.reCount(tree.getTopNode()); tree.findHeight(tree.getTopNode());