X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FMCview%2FAtom.js;h=ff57b47f72914b226cc3b84781e701a7761cbd4a;hp=1f4c66fe523bc02f3616dcb0db4fdca5d500a97e;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/j2s/MCview/Atom.js b/site/j2s/MCview/Atom.js index 1f4c66f..ff57b47 100644 --- a/site/j2s/MCview/Atom.js +++ b/site/j2s/MCview/Atom.js @@ -1,55 +1,55 @@ -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"); -}); +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"); +});