EqualsignoreCase
authoramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 09:17:41 +0000 (09:17 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 09:17:41 +0000 (09:17 +0000)
src/MCview/PDBChain.java

index 5f23a26..0715b6a 100755 (executable)
@@ -195,26 +195,26 @@ public class PDBChain {
             try {\r
                 Bond b = (Bond) bonds.elementAt(i);\r
 \r
-                if (b.at1.resName.toUpperCase().equals("ASP") ||\r
-                        b.at1.resName.toUpperCase().equals("GLU")) {\r
+                if (b.at1.resName.equalsIgnoreCase("ASP") ||\r
+                        b.at1.resName.equalsIgnoreCase("GLU")) {\r
                     b.startCol = Color.red;\r
-                } else if (b.at1.resName.toUpperCase().equals("LYS") ||\r
-                        b.at1.resName.toUpperCase().equals("ARG")) {\r
+                } else if (b.at1.resName.equalsIgnoreCase("LYS") ||\r
+                        b.at1.resName.equalsIgnoreCase("ARG")) {\r
                     b.startCol = Color.blue;\r
-                } else if (b.at1.resName.toUpperCase().equals("CYS")) {\r
+                } else if (b.at1.resName.equalsIgnoreCase("CYS")) {\r
                     b.startCol = Color.yellow;\r
                 } else {\r
                     //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at1.resName.toUpperCase())).intValue();\r
                     b.startCol = Color.lightGray;\r
                 }\r
 \r
-                if (b.at2.resName.toUpperCase().equals("ASP") ||\r
-                        b.at2.resName.toUpperCase().equals("GLU")) {\r
+                if (b.at2.resName.equalsIgnoreCase("ASP") ||\r
+                        b.at2.resName.equalsIgnoreCase("GLU")) {\r
                     b.endCol = Color.red;\r
-                } else if (b.at2.resName.toUpperCase().equals("LYS") ||\r
-                        b.at2.resName.toUpperCase().equals("ARG")) {\r
+                } else if (b.at2.resName.equalsIgnoreCase("LYS") ||\r
+                        b.at2.resName.equalsIgnoreCase("ARG")) {\r
                     b.endCol = Color.blue;\r
-                } else if (b.at2.resName.toUpperCase().equals("CYS")) {\r
+                } else if (b.at2.resName.equalsIgnoreCase("CYS")) {\r
                     b.endCol = Color.yellow;\r
                 } else {\r
                     //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at2.resName.toUpperCase())).intValue();\r