git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1340920
)
if not active tree, colour threshold grey
author
amwaterhouse
<Andrew Waterhouse>
Wed, 13 Apr 2005 16:35:48 +0000
(16:35 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Wed, 13 Apr 2005 16:35:48 +0000
(16:35 +0000)
src/jalview/gui/TreeCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/TreeCanvas.java
b/src/jalview/gui/TreeCanvas.java
index
b5200d5
..
e4d695d
100755
(executable)
--- 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
\r
if (threshold != 0)
\r
{
\r
+ if(av.getCurrentTree() == tree)
\r
g.setColor(Color.red);
\r
+ else
\r
+ g.setColor(Color.gray);
\r
\r
int x = (int)( threshold * (float)(getWidth()-labelLength - 2*offx) +offx ) ;
\r
\r
@@
-384,6
+387,9
@@
public class TreeCanvas extends JPanel implements MouseListener, Runnable, Print
}
\r
\r
public void mousePressed(MouseEvent e) {
\r
+
\r
+ av.setCurrentTree(tree);
\r
+
\r
int x = e.getX();
\r
int y = e.getY();
\r
\r