1 Clazz.declarePackage ("MCview");
2 Clazz.load (["java.awt.Color"], "MCview.Bond", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
10 Clazz.instantialize (this, arguments);
12 Clazz.prepareFields (c$, function () {
13 this.startCol = java.awt.Color.lightGray;
14 this.endCol = java.awt.Color.lightGray;
16 Clazz.makeConstructor (c$,
18 this.start = Clazz.newFloatArray (-1, [at1.x, at1.y, at1.z]);
19 this.end = Clazz.newFloatArray (-1, [at2.x, at2.y, at2.z]);
20 this.startCol = at1.color;
21 this.endCol = at2.color;
24 }, "MCview.Atom,MCview.Atom");
25 Clazz.defineMethod (c$, "translate",
27 this.start[0] = this.start[0] + x;
28 this.end[0] = this.end[0] + x;
29 this.start[1] = this.start[1] + y;
30 this.end[1] = this.end[1] + y;
31 this.start[2] = this.start[2] + z;
32 this.end[2] = this.end[2] + z;