X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2Fjalview%2Fstructure%2FAtomSpec.js;h=0023fdcfd369c2b15422523b48306f8d1a05c124;hp=3e50bc2411eb424137613f19e68ff9ca30ab4cf6;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/jalview/structure/AtomSpec.js b/site/j2s/jalview/structure/AtomSpec.js index 3e50bc2..0023fdc 100644 --- a/site/j2s/jalview/structure/AtomSpec.js +++ b/site/j2s/jalview/structure/AtomSpec.js @@ -1,35 +1,35 @@ -Clazz.declarePackage ("jalview.structure"); -c$ = Clazz.decorateAsClass (function () { -this.pdbFile = null; -this.chain = null; -this.pdbResNum = 0; -this.atomIndex = 0; -Clazz.instantialize (this, arguments); -}, jalview.structure, "AtomSpec"); -Clazz.makeConstructor (c$, -function (pdbFile, chain, resNo, atomNo) { -this.pdbFile = pdbFile; -this.chain = chain; -this.pdbResNum = resNo; -this.atomIndex = atomNo; -}, "~S,~S,~N,~N"); -Clazz.defineMethod (c$, "getPdbFile", -function () { -return this.pdbFile; -}); -Clazz.defineMethod (c$, "getChain", -function () { -return this.chain; -}); -Clazz.defineMethod (c$, "getPdbResNum", -function () { -return this.pdbResNum; -}); -Clazz.defineMethod (c$, "getAtomIndex", -function () { -return this.atomIndex; -}); -Clazz.overrideMethod (c$, "toString", -function () { -return "pdbFile: " + this.pdbFile + ", chain: " + this.chain + ", res: " + this.pdbResNum + ", atom: " + this.atomIndex; -}); +Clazz.declarePackage ("jalview.structure"); +c$ = Clazz.decorateAsClass (function () { +this.pdbFile = null; +this.chain = null; +this.pdbResNum = 0; +this.atomIndex = 0; +Clazz.instantialize (this, arguments); +}, jalview.structure, "AtomSpec"); +Clazz.makeConstructor (c$, +function (pdbFile, chain, resNo, atomNo) { +this.pdbFile = pdbFile; +this.chain = chain; +this.pdbResNum = resNo; +this.atomIndex = atomNo; +}, "~S,~S,~N,~N"); +Clazz.defineMethod (c$, "getPdbFile", +function () { +return this.pdbFile; +}); +Clazz.defineMethod (c$, "getChain", +function () { +return this.chain; +}); +Clazz.defineMethod (c$, "getPdbResNum", +function () { +return this.pdbResNum; +}); +Clazz.defineMethod (c$, "getAtomIndex", +function () { +return this.atomIndex; +}); +Clazz.overrideMethod (c$, "toString", +function () { +return "pdbFile: " + this.pdbFile + ", chain: " + this.chain + ", res: " + this.pdbResNum + ", atom: " + this.atomIndex; +});