Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / jalview / datamodel / BinaryNode.js
index 64fb764..7575508 100644 (file)
-Clazz.declarePackage ("jalview.datamodel");\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.$element = null;\r
-this.name = null;\r
-this.$left = null;\r
-this.$right = null;\r
-this.$parent = null;\r
-this.bootstrap = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, jalview.datamodel, "BinaryNode");\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-this.$left = this.$right = this.$parent = null;\r
-this.bootstrap = 0;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (element, parent, name) {\r
-this.$element = element;\r
-this.$parent = parent;\r
-this.name = name;\r
-this.$left = this.$right = null;\r
-}, "~O,jalview.datamodel.BinaryNode,~S");\r
-Clazz.defineMethod (c$, "element", \r
-function () {\r
-return this.$element;\r
-});\r
-Clazz.defineMethod (c$, "setElement", \r
-function (v) {\r
-return this.$element = v;\r
-}, "~O");\r
-Clazz.defineMethod (c$, "left", \r
-function () {\r
-return this.$left;\r
-});\r
-Clazz.defineMethod (c$, "setLeft", \r
-function (n) {\r
-return this.$left = n;\r
-}, "jalview.datamodel.BinaryNode");\r
-Clazz.defineMethod (c$, "right", \r
-function () {\r
-return this.$right;\r
-});\r
-Clazz.defineMethod (c$, "setRight", \r
-function (n) {\r
-return this.$right = n;\r
-}, "jalview.datamodel.BinaryNode");\r
-Clazz.defineMethod (c$, "parent", \r
-function () {\r
-return this.$parent;\r
-});\r
-Clazz.defineMethod (c$, "setParent", \r
-function (n) {\r
-return this.$parent = n;\r
-}, "jalview.datamodel.BinaryNode");\r
-Clazz.defineMethod (c$, "isLeaf", \r
-function () {\r
-return (this.$left == null) && (this.$right == null);\r
-});\r
-Clazz.defineMethod (c$, "SetChildren", \r
-function (leftchild, rightchild) {\r
-if (leftchild != null) {\r
-this.setLeft (leftchild);\r
-leftchild.detach ();\r
-leftchild.setParent (this);\r
-}if (rightchild != null) {\r
-this.setRight (rightchild);\r
-rightchild.detach ();\r
-rightchild.setParent (this);\r
-}}, "jalview.datamodel.BinaryNode,jalview.datamodel.BinaryNode");\r
-Clazz.defineMethod (c$, "detach", \r
-function () {\r
-if (this.$parent != null) {\r
-if (this.$parent.$left === this) {\r
-this.$parent.$left = null;\r
-} else {\r
-if (this.$parent.$right === this) {\r
-this.$parent.$right = null;\r
-}}}this.$parent = null;\r
-return this;\r
-});\r
-Clazz.defineMethod (c$, "ascendLeft", \r
-function () {\r
-var c = this;\r
-do {\r
-c = c.parent ();\r
-} while ((c != null) && (c.left () != null) && !c.left ().isLeaf ());\r
-return c;\r
-});\r
-Clazz.defineMethod (c$, "ascendRight", \r
-function () {\r
-var c = this;\r
-do {\r
-c = c.parent ();\r
-} while ((c != null) && (c.right () != null) && !c.right ().isLeaf ());\r
-return c;\r
-});\r
-Clazz.defineMethod (c$, "setName", \r
-function (name) {\r
-this.name = name;\r
-}, "~S");\r
-Clazz.defineMethod (c$, "getName", \r
-function () {\r
-return this.name;\r
-});\r
-Clazz.defineMethod (c$, "setBootstrap", \r
-function (boot) {\r
-this.bootstrap = boot;\r
-}, "~N");\r
-Clazz.defineMethod (c$, "getBootstrap", \r
-function () {\r
-return this.bootstrap;\r
-});\r
+Clazz.declarePackage ("jalview.datamodel");
+c$ = Clazz.decorateAsClass (function () {
+this.$element = null;
+this.name = null;
+this.$left = null;
+this.$right = null;
+this.$parent = null;
+this.bootstrap = 0;
+Clazz.instantialize (this, arguments);
+}, jalview.datamodel, "BinaryNode");
+Clazz.makeConstructor (c$, 
+function () {
+this.$left = this.$right = this.$parent = null;
+this.bootstrap = 0;
+});
+Clazz.makeConstructor (c$, 
+function (element, parent, name) {
+this.$element = element;
+this.$parent = parent;
+this.name = name;
+this.$left = this.$right = null;
+}, "~O,jalview.datamodel.BinaryNode,~S");
+Clazz.defineMethod (c$, "element", 
+function () {
+return this.$element;
+});
+Clazz.defineMethod (c$, "setElement", 
+function (v) {
+return this.$element = v;
+}, "~O");
+Clazz.defineMethod (c$, "left", 
+function () {
+return this.$left;
+});
+Clazz.defineMethod (c$, "setLeft", 
+function (n) {
+return this.$left = n;
+}, "jalview.datamodel.BinaryNode");
+Clazz.defineMethod (c$, "right", 
+function () {
+return this.$right;
+});
+Clazz.defineMethod (c$, "setRight", 
+function (n) {
+return this.$right = n;
+}, "jalview.datamodel.BinaryNode");
+Clazz.defineMethod (c$, "parent", 
+function () {
+return this.$parent;
+});
+Clazz.defineMethod (c$, "setParent", 
+function (n) {
+return this.$parent = n;
+}, "jalview.datamodel.BinaryNode");
+Clazz.defineMethod (c$, "isLeaf", 
+function () {
+return (this.$left == null) && (this.$right == null);
+});
+Clazz.defineMethod (c$, "SetChildren", 
+function (leftchild, rightchild) {
+if (leftchild != null) {
+this.setLeft (leftchild);
+leftchild.detach ();
+leftchild.setParent (this);
+}if (rightchild != null) {
+this.setRight (rightchild);
+rightchild.detach ();
+rightchild.setParent (this);
+}}, "jalview.datamodel.BinaryNode,jalview.datamodel.BinaryNode");
+Clazz.defineMethod (c$, "detach", 
+function () {
+if (this.$parent != null) {
+if (this.$parent.$left === this) {
+this.$parent.$left = null;
+} else {
+if (this.$parent.$right === this) {
+this.$parent.$right = null;
+}}}this.$parent = null;
+return this;
+});
+Clazz.defineMethod (c$, "ascendLeft", 
+function () {
+var c = this;
+do {
+c = c.parent ();
+} while ((c != null) && (c.left () != null) && !c.left ().isLeaf ());
+return c;
+});
+Clazz.defineMethod (c$, "ascendRight", 
+function () {
+var c = this;
+do {
+c = c.parent ();
+} while ((c != null) && (c.right () != null) && !c.right ().isLeaf ());
+return c;
+});
+Clazz.defineMethod (c$, "setName", 
+function (name) {
+this.name = name;
+}, "~S");
+Clazz.defineMethod (c$, "getName", 
+function () {
+return this.name;
+});
+Clazz.defineMethod (c$, "setBootstrap", 
+function (boot) {
+this.bootstrap = boot;
+}, "~N");
+Clazz.defineMethod (c$, "getBootstrap", 
+function () {
+return this.bootstrap;
+});