\r
for (int i = 0; i < atoms.size(); i++) {\r
myAtom tmp = (myAtom) atoms.elementAt(i);\r
- String resName = tmp.resName;\r
+ //String resName = tmp.resName;\r
int resNumber = tmp.resNumber;\r
int res = resNumber;\r
\r
} else if (b.at1.resName.toUpperCase().equals("CYS")) {\r
b.startCol = Color.yellow;\r
} else {\r
- int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at1.resName.toUpperCase())).intValue();\r
+ //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at1.resName.toUpperCase())).intValue();\r
b.startCol = Color.lightGray;\r
}\r
\r
} else if (b.at2.resName.toUpperCase().equals("CYS")) {\r
b.endCol = Color.yellow;\r
} else {\r
- int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at2.resName.toUpperCase())).intValue();\r
+ //int atno = ((Integer) ResidueProperties.getAA3Hash().get(b.at2.resName.toUpperCase())).intValue();\r
b.endCol = Color.lightGray;\r
}\r
} catch (Exception e) {\r
((PDBChain) chains.elementAt(i)).setChainColours();\r
}\r
}\r
-\r
- public static void main(String[] args) {\r
- try {\r
- PDBfile pdb = new PDBfile("enkp1.pdb", "File");\r
- } catch (IOException e) {\r
- System.out.println(e);\r
- e.printStackTrace();\r
- System.exit(0);\r
- }\r
- }\r
}\r
}\r
\r
public void mouseReleased(MouseEvent evt) {\r
- int x = evt.getX();\r
- int y = evt.getY();\r
+ //int x = evt.getX();\r
+ //int y = evt.getY();\r
\r
- if (!dragging) {\r
- myAtom tmp = findAtom(x, y);\r
- }\r
+ //if (!dragging) {\r
+ // myAtom tmp = findAtom(x, y);\r
+ //}\r
\r
drawLabels();\r
\r