}
node.color = c;
-
+ if (node.element() instanceof SequenceI)
+ {
+ 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);