From: Jim Procter Date: Tue, 16 Oct 2018 16:20:51 +0000 (+0100) Subject: JAL-3127 reinstate ability to set sequence ID colour directly by right-clicking a... X-Git-Tag: Release_2_11_0~17^2~46^2~13 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b55254252bf3878bb7cfd68f7a3dc4b064f3d9c8;p=jalview.git JAL-3127 reinstate ability to set sequence ID colour directly by right-clicking a node --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index 4658fc9..85ee4bf 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -512,7 +512,18 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, } 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);