This constructor is never called
[jalview.git] / src / jalview / schemes / UserColourScheme.java
index 007d358..00f8f6f 100755 (executable)
@@ -152,8 +152,6 @@ public class UserColourScheme
 \r
           int colIndex = ResidueProperties.aaIndex[token.charAt(0)];\r
 \r
-           //AW - LOWER CASE DISABLED IN 2.1.01 bug fix release\r
-\r
           if(token.equalsIgnoreCase("lowerCase"))\r
           {\r
             if (lowerCaseColours == null)\r
@@ -188,14 +186,14 @@ public class UserColourScheme
 \r
 \r
 \r
-  public Color findColour(String s, int j)\r
+  public Color findColour(char c, int j)\r
   {\r
-      int index = ResidueProperties.aaIndex[s.charAt(0)];\r
+      Color currentColour;\r
+      int index = ResidueProperties.aaIndex[c];\r
 \r
-      if ((threshold == 0) || aboveThreshold(ResidueProperties.aa[index], j))\r
+      if ((threshold == 0) || aboveThreshold(c, j))\r
       {\r
-       //AW - LOWER CASE DISABLED IN 2.1.01 bug fix release\r
-        if(lowerCaseColours!=null && 'a' <= s.charAt(0) && s.charAt(0) <= 'z')\r
+        if(lowerCaseColours!=null && 'a' <= c && c <= 'z')\r
           currentColour = lowerCaseColours[index];\r
         else\r
           currentColour = colors[index];\r
@@ -206,7 +204,7 @@ public class UserColourScheme
       }\r
 \r
       if(conservationColouring)\r
-        applyConservation(j);\r
+       currentColour =  applyConservation(currentColour, j);\r
 \r
 \r
       return currentColour;\r