public UserDefinedColours(AlignmentPanel ap, SequenceGroup sg)\r
{\r
super();\r
+\r
+ //AW - LOWER CASE DISABLED IN 2.1.01 bug fix release\r
+ casePanel.setVisible(false);\r
+\r
+\r
lcaseColour.setEnabled(false);\r
\r
this.ap = ap;\r
\r
void resetButtonPanel(boolean caseSensitive)\r
{\r
+ //AW - LOWER CASE DISABLED IN 2.1.01 bug fix release\r
+ caseSensitive = false;\r
+\r
buttonPanel.removeAll();\r
\r
\r
{ }\r
}\r
\r
+ /* //AW - LOWER CASE DISABLED IN 2.1.01 bug fix release\r
if(caseSensitive.isSelected())\r
button.setMargin(new java.awt.Insets(2,2,2,2));\r
else\r
- button.setMargin(new java.awt.Insets(2,14,2,14));\r
+ button.setMargin(new java.awt.Insets(2,14,2,14));\r
+ */\r
\r
button.setBackground(col);\r
button.setText(label);\r
JPanel jPanel4 = new JPanel();\r
BorderLayout borderLayout5 = new BorderLayout();\r
JLabel label = new JLabel();\r
- JPanel casePanel = new JPanel();\r
+ protected JPanel casePanel = new JPanel();\r
protected JCheckBox caseSensitive = new JCheckBox();\r
protected JButton lcaseColour = new JButton();\r
/**\r
{\r
e.printStackTrace();\r
}\r
+\r
}\r
\r
/**\r
{\r
StringTokenizer st = new StringTokenizer(paramValue, ";");\r
StringTokenizer st2;\r
- String token=null, colour, residues, residue;\r
+ String token=null, colour, residues;\r
try{\r
while (st.hasMoreElements())\r
{\r
while (st2.hasMoreTokens())\r
{\r
token = st2.nextToken();\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
continue;\r
}\r
\r
- int colIndex =\r
- ( (Integer) ResidueProperties.aaHash.\r
- get(token)).intValue();\r
-\r
if(token.equals(token.toLowerCase()))\r
{\r
if(lowerCaseColours==null)\r
}\r
lowerCaseColours[colIndex] = getColourFromString(colour);\r
}\r
- else\r
+ else*/\r
colors[colIndex] = getColourFromString(colour);\r
}\r
}\r
\r
if ((threshold == 0) || aboveThreshold(ResidueProperties.aa[index], j))\r
{\r
- if(lowerCaseColours!=null && 'a' <= s.charAt(0) && s.charAt(0) <= 'z')\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
currentColour = lowerCaseColours[index];\r
- else\r
+ else*/\r
currentColour = colors[index];\r
}\r
else\r