JAL-1807 test
[jalviewjs.git] / bin / MCview / Atom.js
index 1f4c66f..ff57b47 100644 (file)
@@ -1,55 +1,55 @@
-Clazz.declarePackage ("MCview");\r
-Clazz.load (["java.awt.Color"], "MCview.Atom", ["java.lang.Float"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.x = 0;\r
-this.y = 0;\r
-this.z = 0;\r
-this.number = 0;\r
-this.name = null;\r
-this.resName = null;\r
-this.resNumber = 0;\r
-this.insCode = ' ';\r
-this.resNumIns = null;\r
-this.type = 0;\r
-this.color = null;\r
-this.chain = null;\r
-this.alignmentMapping = -1;\r
-this.atomIndex = 0;\r
-this.occupancy = 0;\r
-this.tfactor = 0;\r
-this.isSelected = false;\r
-Clazz.instantialize (this, arguments);\r
-}, MCview, "Atom");\r
-Clazz.prepareFields (c$, function () {\r
-this.color = java.awt.Color.lightGray;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (str) {\r
-this.atomIndex = Integer.parseInt (str.substring (6, 11).trim ());\r
-this.name = str.substring (12, 15).trim ();\r
-this.resName = str.substring (17, 20);\r
-this.chain = str.substring (21, 22);\r
-this.resNumber = Integer.parseInt (str.substring (22, 26).trim ());\r
-this.resNumIns = str.substring (22, 27).trim ();\r
-this.insCode = str.substring (26, 27).charAt (0);\r
-this.x = ( new Float (str.substring (30, 38).trim ()).floatValue ());\r
-this.y = ( new Float (str.substring (38, 46).trim ()).floatValue ());\r
-this.z = ( new Float (str.substring (47, 55).trim ()).floatValue ());\r
-var tm = str.substring (54, 60).trim ();\r
-if (tm.length > 0) {\r
-this.occupancy = ( new Float (tm)).floatValue ();\r
-} else {\r
-this.occupancy = 1;\r
-}tm = str.substring (60, 66).trim ();\r
-if (tm.length > 0) {\r
-this.tfactor = ( new Float (tm).floatValue ());\r
-} else {\r
-this.tfactor = 1;\r
-}}, "~S");\r
-Clazz.makeConstructor (c$, \r
-function (x, y, z) {\r
-this.x = x;\r
-this.y = y;\r
-this.z = z;\r
-}, "~N,~N,~N");\r
-});\r
+Clazz.declarePackage ("MCview");
+Clazz.load (["java.awt.Color"], "MCview.Atom", ["java.lang.Float"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.x = 0;
+this.y = 0;
+this.z = 0;
+this.number = 0;
+this.name = null;
+this.resName = null;
+this.resNumber = 0;
+this.insCode = ' ';
+this.resNumIns = null;
+this.type = 0;
+this.color = null;
+this.chain = null;
+this.alignmentMapping = -1;
+this.atomIndex = 0;
+this.occupancy = 0;
+this.tfactor = 0;
+this.isSelected = false;
+Clazz.instantialize (this, arguments);
+}, MCview, "Atom");
+Clazz.prepareFields (c$, function () {
+this.color = java.awt.Color.lightGray;
+});
+Clazz.makeConstructor (c$, 
+function (str) {
+this.atomIndex = Integer.parseInt (str.substring (6, 11).trim ());
+this.name = str.substring (12, 15).trim ();
+this.resName = str.substring (17, 20);
+this.chain = str.substring (21, 22);
+this.resNumber = Integer.parseInt (str.substring (22, 26).trim ());
+this.resNumIns = str.substring (22, 27).trim ();
+this.insCode = str.substring (26, 27).charAt (0);
+this.x = ( new Float (str.substring (30, 38).trim ()).floatValue ());
+this.y = ( new Float (str.substring (38, 46).trim ()).floatValue ());
+this.z = ( new Float (str.substring (47, 55).trim ()).floatValue ());
+var tm = str.substring (54, 60).trim ();
+if (tm.length > 0) {
+this.occupancy = ( new Float (tm)).floatValue ();
+} else {
+this.occupancy = 1;
+}tm = str.substring (60, 66).trim ();
+if (tm.length > 0) {
+this.tfactor = ( new Float (tm).floatValue ());
+} else {
+this.tfactor = 1;
+}}, "~S");
+Clazz.makeConstructor (c$, 
+function (x, y, z) {
+this.x = x;
+this.y = y;
+this.z = z;
+}, "~N,~N,~N");
+});