\r
\r
\r
- public Color findColour(String s, int j)\r
+ public Color findColour(char c, int j)\r
{\r
Color currentColour;\r
- int index = ResidueProperties.aaIndex[s.charAt(0)];\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
- 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