keep record of atomIndeX
authoramwaterhouse <Andrew Waterhouse>
Tue, 27 Feb 2007 13:28:47 +0000 (13:28 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 27 Feb 2007 13:28:47 +0000 (13:28 +0000)
src/MCview/Atom.java

index c15455e..f8fb9b4 100755 (executable)
@@ -34,12 +34,15 @@ public class Atom
   public int type;
   Color color = Color.lightGray;
   public String chain;
-  int alignmentMapping = -1;
+  public int alignmentMapping = -1;
+  public int atomIndex;
 
   public boolean isSelected = false;
 
   public Atom(String str)
   {
+    atomIndex = Integer.parseInt(str.substring(6, 11).trim());
+
     name = str.substring(12, 15).trim();
 
     resName = str.substring(17, 20);