Make java 1.1 compatible
authoramwaterhouse <Andrew Waterhouse>
Fri, 3 Feb 2006 17:47:55 +0000 (17:47 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 3 Feb 2006 17:47:55 +0000 (17:47 +0000)
src/jalview/schemes/AnnotationColourGradient.java

index d91ced5..bc44559 100755 (executable)
@@ -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