treeCanvas.setTree(tree);
if (newtree != null)
{
- distanceMenu.setState(newtree.HasDistances());
- bootstrapMenu.setState(newtree.HasBootstrap());
- treeCanvas.setShowBootstrap(newtree.HasBootstrap());
- treeCanvas.setShowDistances(newtree.HasDistances());
+ // Set default view, paying lip service to any overriding tree view parameter settings
+ boolean showDist = newtree.HasDistances() && av.applet.getDefaultParameter("showTreeDistances", newtree.HasDistances());
+ boolean showBoots = newtree.HasBootstrap() && av.applet.getDefaultParameter("showTreeBootstraps", newtree.HasBootstrap());
+ distanceMenu.setState(showDist);
+ bootstrapMenu.setState(showBoots);
+ treeCanvas.setShowBootstrap(showBoots);
+ treeCanvas.setShowDistances(showDist);
+ treeCanvas.setMarkPlaceholders(av.applet.getDefaultParameter("showUnlinkedTreeNodes", false));
}
treeCanvas.repaint();