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:
f8316a0
)
returns color.white if residueBoxColour is null
author
amwaterhouse
<Andrew Waterhouse>
Fri, 19 Nov 2004 17:21:14 +0000
(17:21 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 19 Nov 2004 17:21:14 +0000
(17:21 +0000)
src/jalview/gui/SequenceRenderer.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/SequenceRenderer.java
b/src/jalview/gui/SequenceRenderer.java
index
7a52bcc
..
0c1bfdc
100755
(executable)
--- a/
src/jalview/gui/SequenceRenderer.java
+++ b/
src/jalview/gui/SequenceRenderer.java
@@
-10,11
+10,14
@@
public class SequenceRenderer implements RendererI
{
\r
FontMetrics fm;
\r
\r
- public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i) {
\r
+ public Color getResidueBoxColour(ColourSchemeI cs, SequenceI seq, int i)
\r
+ {
\r
+ Color c = Color.white;
\r
+ try{
\r
+ c = cs.findColour(seq, seq.getSequence(i, i + 1), i, null);
\r
+ }catch(Exception ex){}
\r
\r
- Color c = cs.findColour(seq, seq.getSequence(i, i + 1), i, null);
\r
return c;
\r
-
\r
}
\r
\r
\r