@Override
public void actionPerformed(ActionEvent evt)
{
- getRotatableCanvas().setApplyToAllViews(false);
- getRotatableCanvas().av = panel.av;
- getRotatableCanvas().ap = panel;
- PaintRefresher.Register(PCAPanel.this,
- panel.av.getSequenceSetId());
+ selectAssociatedView(panel);
}
});
{
this.top = top;
}
+
+ /**
+ * set the associated view for this PCA.
+ *
+ * @param panel
+ */
+ public void selectAssociatedView(AlignmentPanel panel)
+ {
+ getRotatableCanvas().setApplyToAllViews(false);
+
+ ap = panel;
+ av = panel.av;
+
+ getRotatableCanvas().av = panel.av;
+ getRotatableCanvas().ap = panel;
+ PaintRefresher.Register(PCAPanel.this, panel.av.getSequenceSetId());
+ }
}