import jalview.viewmodel.AlignmentViewport;
import java.awt.Color;
+import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.MouseEvent;
@Override
public void actionPerformed(ActionEvent e)
{
+ // reset hidden sequences first
+ parentAvport.showAllHiddenSeqs();
+
if (treeView.isCurrentTreeIsSubtree())
{
LoadedTreeSequenceAssociation bindAptxNodes = new LoadedTreeSequenceAssociation(
}
}
+ else
+ {
+
+ Rectangle visibleView = treeView.getVisibleRect();
+
+ for (PhylogenyNode node : PhylogenyMethods.getAllDescendants(treeView.getPhylogeny().getRoot())) {
+ if (!(node.getXcoord() > visibleView.getMinX()
+ && node.getXcoord() < visibleView.getMaxX()
+ && node.getYcoord() > visibleView.getMinY()
+ && node.getYcoord() < visibleView.getMaxY()))
+ {
+ parentAvport
+ .hideSequence(new SequenceI[]
+ { nodesBoundToSequences.get(node) });
+ }
+ }
+
+ }
+
}