+ StringTokenizer st = new StringTokenizer(paramValue, ";");\r
+ StringTokenizer st2;\r
+ String token=null, colour, residues;\r
+ try{\r
+ while (st.hasMoreElements())\r
+ {\r
+ token = st.nextToken().trim();\r
+ residues = token.substring(0, token.indexOf("="));\r
+ colour = token.substring(token.indexOf("=") + 1);\r
+\r
+ st2 = new StringTokenizer(residues, " ,");\r
+ while (st2.hasMoreTokens())\r
+ {\r
+ token = st2.nextToken();\r
+\r
+ if (ResidueProperties.aaHash.get(token) == null)\r
+ continue;\r
+\r
+ int colIndex =\r
+ ( (Integer) ResidueProperties.aaHash.\r
+ get(token)).intValue();\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
+ lowerCaseColours = new Color[23];\r
+ for (int i = 0; i < 23; i++)\r
+ if (lowerCaseColours[i] == null)\r
+ lowerCaseColours[i] = getColourFromString(colour);\r
+\r
+ continue;\r
+ }\r
+\r
+ if(token.equals(token.toLowerCase()))\r
+ {\r
+ if(lowerCaseColours==null)\r
+ {\r
+ lowerCaseColours = new Color[23];\r
+ }\r
+ lowerCaseColours[colIndex] = getColourFromString(colour);\r
+ }\r
+ else\r
+ colors[colIndex] = getColourFromString(colour);\r
+ }\r
+ }\r
+ }\r
+ catch(Exception ex)\r
+ {\r
+ System.out.println("Error parsing userDefinedColours:\n"\r
+ +token+"\n"+ex);\r