From 075b02dfc45ce07f928ebe4751fdc5f85970bf6e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 27 Feb 2007 13:28:47 +0000 Subject: [PATCH 1/1] keep record of atomIndeX --- src/MCview/Atom.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MCview/Atom.java b/src/MCview/Atom.java index c15455e..f8fb9b4 100755 --- a/src/MCview/Atom.java +++ b/src/MCview/Atom.java @@ -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); -- 1.7.10.2