initTreePanel(av, seqVector, type, pwtype, s, e, null);\r
\r
// We know this tree has distances. JBPNote TODO: prolly should add this as a userdefined default\r
- treeCanvas.setShowDistances(true);\r
- distanceMenu.setSelected(true);\r
+ showDistances(true);\r
}\r
\r
/**\r
{\r
// Must be outside run(), as Jalview2XML tries to\r
// update distance/bootstrap visibility at the same time\r
- treeCanvas.setShowBootstrap(newtree.HasBootstrap());\r
- bootstrapMenu.setSelected(newtree.HasBootstrap());\r
-\r
- treeCanvas.setShowDistances(newtree.HasDistances());\r
- distanceMenu.setSelected(newtree.HasDistances());\r
+ showBootstrap(newtree.HasBootstrap());\r
+ showDistances(newtree.HasDistances());\r
}\r
}\r
\r
}\r
}\r
\r
+ public void showDistances(boolean b)\r
+ {\r
+ treeCanvas.setShowDistances(b);\r
+ distanceMenu.setSelected(b);\r
+ }\r
+\r
+ public void showBootstrap(boolean b)\r
+ {\r
+ treeCanvas.setShowBootstrap(b);\r
+ bootstrapMenu.setSelected(b);\r
+ }\r
+\r
+ public void showPlaceholders(boolean b)\r
+ {\r
+ placeholdersMenu.setState(b);\r
+ treeCanvas.setMarkPlaceholders(b);\r
+ }\r
+\r
+\r
+\r
\r
/**\r
* DOCUMENT ME!\r