From: amwaterhouse Date: Wed, 13 Apr 2005 16:35:48 +0000 (+0000) Subject: if not active tree, colour threshold grey X-Git-Tag: Release_2_0~433 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=2a9b708e27d521803763e17c81c9cb2269507f3f;p=jalview.git if not active tree, colour threshold grey --- diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index b5200d5..e4d695d 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -342,7 +342,10 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, Print if (threshold != 0) { + if(av.getCurrentTree() == tree) g.setColor(Color.red); + else + g.setColor(Color.gray); int x = (int)( threshold * (float)(getWidth()-labelLength - 2*offx) +offx ) ; @@ -384,6 +387,9 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, Print } public void mousePressed(MouseEvent e) { + + av.setCurrentTree(tree); + int x = e.getX(); int y = e.getY();