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:
526094d
)
add fix if colour is white
author
amwaterhouse
<Andrew Waterhouse>
Tue, 16 Nov 2004 15:24:21 +0000
(15:24 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 16 Nov 2004 15:24:21 +0000
(15:24 +0000)
src/jalview/gui/TreeCanvas.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/TreeCanvas.java
b/src/jalview/gui/TreeCanvas.java
index
0f85aed
..
484e05a
100755
(executable)
--- a/
src/jalview/gui/TreeCanvas.java
+++ b/
src/jalview/gui/TreeCanvas.java
@@
-92,7
+92,16
@@
public class TreeCanvas extends JPanel implements MouseListener
int ypos = (int)(node.ycount * chunk) + offy;
\r
\r
if (node.element() instanceof SequenceI)
\r
- g.setColor(((SequenceI)((SequenceNode)node).element()).getColor().darker());
\r
+ {
\r
+ if ( ( (SequenceI) ( (SequenceNode) node).element()).getColor() == Color.white)
\r
+ {
\r
+ g.setColor(Color.black);
\r
+ }
\r
+ else
\r
+ g.setColor( ( (SequenceI) ( (SequenceNode) node).element()).getColor().
\r
+ darker());
\r
+
\r
+ }
\r
else
\r
g.setColor(Color.black);
\r
\r