}
- /**
- * If a node is selected in the tree panel this method highlights the
- * corresponding sequence in the Jalview alignment view. If an internal node
- * is selected all child sequences get highlighted as well.
- */
+
@Override
public void showNodeSelectionOnAlign(final MouseEvent e)
{
if (node != null)
{
if ((e.getModifiers() & InputEvent.SHIFT_MASK) == 0) // clear previous
- // selection if shift
- // IS NOT pressed
+ // selection if shift
+ // IS NOT pressed
{
parentAvport.setSelectionGroup(null);
}
if (node.isInternal())
{
showMatchingChildSequences(node);
-
}
+
else
{
showMatchingSequence(node);
-
}
}
import jalview.analysis.SequenceIdMatcher;
import jalview.datamodel.SequenceI;
+import jalview.ext.forester.ForesterDataConversions;
import java.util.ArrayList;
import java.util.List;
SequenceI nodeSequence;
String nodeSequenceName;
List<SequenceI> one2many = new ArrayList<>();
- // int countOne2Many = 0;
+ int countOne2Many = 0;
for (PhylogenyNode treeNode : leaves)
{
if (nodeSequence != null)
{
+ org.forester.phylogeny.data.Sequence foresterNodeSeq = ForesterDataConversions.createForesterSequence(nodeSequence, true);
- //treeNode.setElement(nodeSequence);
+ treeNode.getNodeData().setSequence(foresterNodeSeq);
if (one2many.contains(nodeSequence))
{
- // countOne2Many++;
+ countOne2Many++;
if (jalview.bin.Cache.log.isDebugEnabled())
{
jalview.bin.Cache.log.debug("One 2 many relationship for"
extends ActionListener, MouseListener, SelectionListener,
SelectionSource
{
+ /**
+ * If a node is selected in the tree panel this method highlights the
+ * 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 treeSelectionChanged(SequenceI sequence);