From b55254252bf3878bb7cfd68f7a3dc4b064f3d9c8 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 16 Oct 2018 17:20:51 +0100 Subject: [PATCH] JAL-3127 reinstate ability to set sequence ID colour directly by right-clicking a node --- src/jalview/gui/TreeCanvas.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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); -- 1.7.10.2