- Bond b = (Bond) bonds.elementAt(i);
-
- if (b.at1.resName.equalsIgnoreCase("ASP")
- || b.at1.resName.equalsIgnoreCase("GLU"))
- {
- b.startCol = Color.red;
- }
- else if (b.at1.resName.equalsIgnoreCase("LYS")
- || b.at1.resName.equalsIgnoreCase("ARG"))
- {
- b.startCol = Color.blue;
- }
- else if (b.at1.resName.equalsIgnoreCase("CYS"))
- {
- b.startCol = Color.yellow;
- }
- else
- {
- b.startCol = Color.lightGray;
- }
-
- if (b.at2.resName.equalsIgnoreCase("ASP")
- || b.at2.resName.equalsIgnoreCase("GLU"))
- {
- b.endCol = Color.red;
- }
- else if (b.at2.resName.equalsIgnoreCase("LYS")
- || b.at2.resName.equalsIgnoreCase("ARG"))
- {
- b.endCol = Color.blue;
- }
- else if (b.at2.resName.equalsIgnoreCase("CYS"))
- {
- b.endCol = Color.yellow;
- }
- else
- {
- b.endCol = Color.lightGray;
- }
- } catch (Exception e)