/** DOCUMENT ME!! */\r
int inc = 30;\r
\r
- /**\r
- * The colour to be calculated, manipulated and returned\r
- */\r
- Color currentColour = null;\r
-\r
-\r
\r
/**\r
* Creates a new ResidueColourScheme object.\r
\r
public Color findColour(String s, int j)\r
{\r
-\r
+ Color currentColour;\r
int index = ResidueProperties.aaIndex[s.charAt(0)];\r
\r
if ((threshold == 0) || aboveThreshold(ResidueProperties.aa[index], j))\r
}\r
\r
if(conservationColouring)\r
- applyConservation(j);\r
+ applyConservation(currentColour, j);\r
\r
\r
return currentColour;\r
* @return DOCUMENT ME!\r
*/\r
\r
- void applyConservation(int i)\r
+ void applyConservation(Color currentColour, int i)\r
{\r
\r
if ((conservation[i] != '*') && (conservation[i] != '+'))\r