17 public Atom(StringTokenizer str) {
\r
18 this.number = (new Integer(str.nextToken())).intValue();
\r
19 this.name = str.nextToken();
\r
20 this.resName = str.nextToken();
\r
22 String tmpstr = new String();
\r
25 tmpstr = str.nextToken();
\r
27 this.resNumber = (new Integer(tmpstr).intValue());
\r
29 this.color = Color.green;
\r
31 } catch(NumberFormatException e) {
\r
32 this.chain = tmpstr;
\r
34 if (tmpstr.equals("A")) {
\r
35 this.color = new Color((float)Math.random(),(float)Math.random(),(float)Math.random());
\r
37 this.color = Color.red;
\r
39 this.resNumber = (new Integer(str.nextToken()).intValue());
\r
42 this.x = (double)(new Double(str.nextToken()).floatValue());
\r
43 this.y = (double)(new Double(str.nextToken()).floatValue());
\r
44 this.z = (double)(new Double(str.nextToken()).floatValue());
\r
48 public void setColor(Color col) {
\r