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:
ba7dbc4
)
Make java 1.1 compatible
author
amwaterhouse
<Andrew Waterhouse>
Fri, 3 Feb 2006 17:47:55 +0000
(17:47 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 3 Feb 2006 17:47:55 +0000
(17:47 +0000)
src/jalview/schemes/AnnotationColourGradient.java
patch
|
blob
|
history
diff --git
a/src/jalview/schemes/AnnotationColourGradient.java
b/src/jalview/schemes/AnnotationColourGradient.java
index
d91ced5
..
bc44559
100755
(executable)
--- a/
src/jalview/schemes/AnnotationColourGradient.java
+++ b/
src/jalview/schemes/AnnotationColourGradient.java
@@
-72,7
+72,7
@@
public class AnnotationColourGradient extends ResidueColourScheme
public Color findColour(String n)
\r
{
\r
System.out.println("AnnotationColourGradient findColour(string)");
\r
- return Color.RED;
\r
+ return Color.red;
\r
}
\r
\r
/**
\r
@@
-87,7
+87,7
@@
public class AnnotationColourGradient extends ResidueColourScheme
{
\r
if ((threshold == 0) || aboveThreshold(n, j))
\r
{
\r
- if(annotation.annotations[j]==null)
\r
+ if( j+1>annotation.annotations.length || annotation.annotations[j]==null)
\r
currentColour = Color.white;
\r
else
\r
{
\r