@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);
}
}
- }
+
import jalview.structure.SelectionSource;
import java.awt.event.ActionListener;
-import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
/**
* corresponding sequence in the Jalview alignment view. If an internal node
* is selected all child sequences get highlighted as well.
*/
- public void showNodeSelectionOnAlign(MouseEvent e);
+ public void showNodeSelectionOnAlign(N node);
public void treeSelectionChanged(SequenceI sequence);