* Resend the selection to the tree view when tabs get switched, this
* has to be buried in invokeLater as Forester first resets the tree
* view on switching tabs, without invokeLater this would get called
- * before Forester resets which would nullify the selection
+ * before Forester resets which would nullify the selection.
*/
public void run()
{
parentAvport.sendSelection();
+ // PaintRefresher.Refresh(treeView,
+ // parentAvport.getSequenceSetId());
}
});
@Override
public void mousePressed(final MouseEvent e)
{
- showNodeSelectionOnAlign(e);
- }
+ final PhylogenyNode node = treeView.findNode(e.getX(), e.getY());
+ if (node != null)
+ {
+ if ((e.getModifiers() & InputEvent.SHIFT_MASK) == 0) // clear previous
+ // selection if shift
+ // IS NOT pressed
+ {
+ parentAvport.setSelectionGroup(null);
+ }
+ showNodeSelectionOnAlign(node);
+ }
+ else
+ {
+ partitionTree();
+ }
+ }
@Override
public void mouseReleased(MouseEvent e)
{
}
+ public void partitionTree()
+ {
+
+ }
+
@Override
- public void showNodeSelectionOnAlign(final MouseEvent e)
+ public void showNodeSelectionOnAlign(final PhylogenyNode node)
{
- final PhylogenyNode node = treeView.findNode(e.getX(), e.getY());
- if (node != null)
- {
- if ((e.getModifiers() & InputEvent.SHIFT_MASK) == 0) // clear previous
- // selection if shift
- // IS NOT pressed
- {
- parentAvport.setSelectionGroup(null);
- }
-
if (node.isInternal())
{
showMatchingChildSequences(node);
}
}
- }
+
{
treeSelectionChanged(matchingSequence);
parentAvport.sendSelection();
- PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId());
+ PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId()); // redundant?
}
}
}
}
parentAvport.sendSelection();
- PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId());
+ PaintRefresher.Refresh(treeView, parentAvport.getSequenceSetId()); // redundant?
}
/**