6 public class myAtom {
\r
13 public String resName;
\r
14 public int resNumber;
\r
17 public String chain;
\r
18 public boolean isSelected = false;
\r
20 public myAtom(StringTokenizer str) {
\r
22 this.number = (new Integer(str.nextToken())).intValue();
\r
23 this.name = str.nextToken();
\r
24 this.resName = str.nextToken();
\r
26 String tmpstr = new String();
\r
29 tmpstr = str.nextToken();
\r
30 this.resNumber = (new Integer(tmpstr).intValue());
\r
32 this.color = Color.lightGray;
\r
34 } catch(NumberFormatException e) {
\r
35 this.chain = tmpstr;
\r
37 if (tmpstr.equals("A")) {
\r
38 this.color = Color.lightGray;
\r
41 this.color = Color.red;
\r
44 this.resNumber = (new Integer(str.nextToken()).intValue());
\r
47 this.x = (float)(new Float(str.nextToken()).floatValue());
\r
48 this.y = (float)(new Float(str.nextToken()).floatValue());
\r
49 this.z = (float)(new Float(str.nextToken()).floatValue());
\r
52 public void setColor(Color col) {
\r