From: amwaterhouse Date: Mon, 19 Sep 2005 12:49:14 +0000 (+0000) Subject: ShowDistances, placeHolders and bootstraps have their own methods X-Git-Tag: Release_2_06~49 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cd092aaf2104ed3651aa9ee80d0c24bb57dfae27;p=jalview.git ShowDistances, placeHolders and bootstraps have their own methods --- diff --git a/src/jalview/gui/TreePanel.java b/src/jalview/gui/TreePanel.java index c6c9b53..fea4704 100755 --- a/src/jalview/gui/TreePanel.java +++ b/src/jalview/gui/TreePanel.java @@ -75,8 +75,7 @@ public class TreePanel extends GTreePanel initTreePanel(av, seqVector, type, pwtype, s, e, null); // We know this tree has distances. JBPNote TODO: prolly should add this as a userdefined default - treeCanvas.setShowDistances(true); - distanceMenu.setSelected(true); + showDistances(true); } /** @@ -148,11 +147,8 @@ public class TreePanel extends GTreePanel { // Must be outside run(), as Jalview2XML tries to // update distance/bootstrap visibility at the same time - treeCanvas.setShowBootstrap(newtree.HasBootstrap()); - bootstrapMenu.setSelected(newtree.HasBootstrap()); - - treeCanvas.setShowDistances(newtree.HasDistances()); - distanceMenu.setSelected(newtree.HasDistances()); + showBootstrap(newtree.HasBootstrap()); + showDistances(newtree.HasDistances()); } } @@ -172,6 +168,26 @@ public class TreePanel extends GTreePanel } } + public void showDistances(boolean b) + { + treeCanvas.setShowDistances(b); + distanceMenu.setSelected(b); + } + + public void showBootstrap(boolean b) + { + treeCanvas.setShowBootstrap(b); + bootstrapMenu.setSelected(b); + } + + public void showPlaceholders(boolean b) + { + placeholdersMenu.setState(b); + treeCanvas.setMarkPlaceholders(b); + } + + + /** * DOCUMENT ME!