X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fj2s%2FMCview%2FBond.js;h=9aaba459729fd63025f7c0f07a598bd2d1cae0af;hp=539e3238e5e45157690020e872587e54af5b7981;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6 diff --git a/site/j2s/MCview/Bond.js b/site/j2s/MCview/Bond.js index 539e323..9aaba45 100644 --- a/site/j2s/MCview/Bond.js +++ b/site/j2s/MCview/Bond.js @@ -1,34 +1,34 @@ -Clazz.declarePackage ("MCview"); -Clazz.load (["java.awt.Color"], "MCview.Bond", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.start = null; -this.end = null; -this.startCol = null; -this.endCol = null; -this.at1 = null; -this.at2 = null; -Clazz.instantialize (this, arguments); -}, MCview, "Bond"); -Clazz.prepareFields (c$, function () { -this.startCol = java.awt.Color.lightGray; -this.endCol = java.awt.Color.lightGray; -}); -Clazz.makeConstructor (c$, -function (at1, at2) { -this.start = Clazz.newFloatArray (-1, [at1.x, at1.y, at1.z]); -this.end = Clazz.newFloatArray (-1, [at2.x, at2.y, at2.z]); -this.startCol = at1.color; -this.endCol = at2.color; -this.at1 = at1; -this.at2 = at2; -}, "MCview.Atom,MCview.Atom"); -Clazz.defineMethod (c$, "translate", -function (x, y, z) { -this.start[0] = this.start[0] + x; -this.end[0] = this.end[0] + x; -this.start[1] = this.start[1] + y; -this.end[1] = this.end[1] + y; -this.start[2] = this.start[2] + z; -this.end[2] = this.end[2] + z; -}, "~N,~N,~N"); -}); +Clazz.declarePackage ("MCview"); +Clazz.load (["java.awt.Color"], "MCview.Bond", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.start = null; +this.end = null; +this.startCol = null; +this.endCol = null; +this.at1 = null; +this.at2 = null; +Clazz.instantialize (this, arguments); +}, MCview, "Bond"); +Clazz.prepareFields (c$, function () { +this.startCol = java.awt.Color.lightGray; +this.endCol = java.awt.Color.lightGray; +}); +Clazz.makeConstructor (c$, +function (at1, at2) { +this.start = Clazz.newFloatArray (-1, [at1.x, at1.y, at1.z]); +this.end = Clazz.newFloatArray (-1, [at2.x, at2.y, at2.z]); +this.startCol = at1.color; +this.endCol = at2.color; +this.at1 = at1; +this.at2 = at2; +}, "MCview.Atom,MCview.Atom"); +Clazz.defineMethod (c$, "translate", +function (x, y, z) { +this.start[0] = this.start[0] + x; +this.end[0] = this.end[0] + x; +this.start[1] = this.start[1] + y; +this.end[1] = this.end[1] + y; +this.start[2] = this.start[2] + z; +this.end[2] = this.end[2] + z; +}, "~N,~N,~N"); +});