From 2bce008bf6a7cdd574baa767acef76939ea1aff8 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 13 Apr 2005 16:36:18 +0000 Subject: [PATCH] getTree method added --- src/jalview/gui/TreePanel.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()); -- 1.7.10.2