node.color = c;
if (node.element() instanceof SequenceI)
{
+ final SequenceI seq = (SequenceI) node.element();
AlignmentPanel[] aps = getAssociatedPanels();
if (aps != null)
{
for (int a = 0; a < aps.length; a++)
{
- final SequenceI seq = (SequenceI) node.element();
aps[a].av.setSequenceColour(seq, c);
}
}
}
- if ((node.left() != null) || (node.right() != null)) // TODO: internal node
- {
- setColor((SequenceNode) node.left(), c);
- setColor((SequenceNode) node.right(), c);
- }
+ setColor((SequenceNode) node.left(), c);
+ setColor((SequenceNode) node.right(), c);
}
/**