treeView = archaeopteryx.getTreePanel();
ssm = parentAvport.getStructureSelectionManager();
+ aptxFrame.setViewBinding(this);
ssm.addSelectionListener(this);
treeView.addMouseListener(this);
treeView.registerWithPaintRefresher(
if (treeView.showingSubTree())
{
- LoadedTreeSequenceAssociation bindAptxNodes = new LoadedTreeSequenceAssociation(
- parentAvport.getAlignment().getSequencesArray(),
+ LoadedTreeSequenceAssociation bindAptxNodes = new LoadedTreeSequenceAssociation(
+ parentAvport.getAlignment().getSequencesArray(),
treeView.getTree());
- bindAptxNodes.associateLeavesToSequences();
- sequencesBoundToNodes = bindAptxNodes.getAlignmentWithNodes();
- nodesBoundToSequences = bindAptxNodes.getNodesWithAlignment();
- TreeViewerUtils.associateNodesWithJalviewSequences(aptxFrame, parentAvport,
- sequencesBoundToNodes, nodesBoundToSequences);
+ bindAptxNodes.associateLeavesToSequences();
+ sequencesBoundToNodes = bindAptxNodes.getAlignmentWithNodes();
+ nodesBoundToSequences = bindAptxNodes.getNodesWithAlignment();
+ TreeViewerUtils.associateNodesWithJalviewSequences(aptxFrame,
+ parentAvport, sequencesBoundToNodes, nodesBoundToSequences);
-
- for (SequenceI seq : parentAvport.getAlignment().getSequencesArray())
- {
- if (!sequencesBoundToNodes.containsKey(seq))
+ for (SequenceI seq : parentAvport.getAlignment().getSequencesArray())
{
- parentAvport.hideSequence(new SequenceI[] { seq });
- }
+ if (!sequencesBoundToNodes.containsKey(seq))
+ {
+ parentAvport.hideSequence(new SequenceI[] { seq });
+ }
}
}
@Override
public CommandI sortAlignmentIn(AlignmentPanel ap)
{
- // TODO: move to alignment view controller
-
AlignmentViewport viewport = ap.av;
SequenceI[] oldOrder = viewport.getAlignment().getSequencesArray();
try