From: amwaterhouse Date: Tue, 27 Feb 2007 13:28:47 +0000 (+0000) Subject: keep record of atomIndeX X-Git-Tag: Release_2_3~341 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=075b02dfc45ce07f928ebe4751fdc5f85970bf6e;hp=ea1bc94cb0d4ea4b877101cb7d93283ed4a199fe;p=jalview.git keep record of atomIndeX --- 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);