tp.setTitle(tree.getTitle());
tp.setBounds(new Rectangle(tree.getXpos(), tree.getYpos(),
tree.getWidth(), tree.getHeight()));
- tp.av = av;
- tp.treeCanvas.av = av; // af.viewport;
- tp.treeCanvas.ap = ap; // af.alignPanel;
-
+ tp.setViewport(av); // af.viewport; // TODO: verify 'associate with all
+ // views'
+ // works still
+ tp.getTreeCanvas().setViewport(av); // af.viewport;
+ tp.getTreeCanvas().setAssociatedPanel(ap); // af.alignPanel;
-
}
if (tp == null)
{
tp.showBootstrap(tree.getShowBootstrap());
tp.showDistances(tree.getShowDistances());
- tp.treeCanvas.threshold = tree.getThreshold();
+ tp.getTreeCanvas().setThreshold(tree.getThreshold());
+ tp.treeCanvas.applyToAllViews = tree.isLinkToAllViews();
if (tree.getCurrentTree())
{
JRadioButtonMenuItem item;
ButtonGroup buttonGroup = new ButtonGroup();
- int i, iSize = aps.length;
- final PCAPanel thisPCAPanel = this;
- for (i = 0; i < iSize; i++)
+ int iSize = aps.length;
+
+ for (int i = 0; i < iSize; i++)
{
- final AlignmentPanel panel = aps[i];
- item = new JRadioButtonMenuItem(panel.av.viewName, panel.av == rc.av);
+ final AlignmentPanel ap = aps[i];
+ item = new JRadioButtonMenuItem(ap.av.getViewName(), ap.av == rc.av);
buttonGroup.add(item);
item.addActionListener(new ActionListener()
{