X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=bin%2Fjalview%2Fdatamodel%2FSequenceNode.js;h=2069471ca8fe759cc89fa3943d52e4c9e21c9b72;hp=54cb49127e02470ea8b6e039e052653765027a1e;hb=8ffd05b3abe52c0b6b79b011c0966361f82d5fe6;hpb=6154cb57a6eac3bb1344b8342495f5bb701ee921 diff --git a/bin/jalview/datamodel/SequenceNode.js b/bin/jalview/datamodel/SequenceNode.js index 54cb491..2069471 100644 --- a/bin/jalview/datamodel/SequenceNode.js +++ b/bin/jalview/datamodel/SequenceNode.js @@ -1,64 +1,64 @@ -Clazz.declarePackage ("jalview.datamodel"); -Clazz.load (["jalview.datamodel.BinaryNode", "java.awt.Color"], "jalview.datamodel.SequenceNode", null, function () { -c$ = Clazz.decorateAsClass (function () { -this.dist = 0; -this.count = 0; -this.height = 0; -this.ycount = 0; -this.color = null; -this.dummy = false; -this.placeholder = false; -Clazz.instantialize (this, arguments); -}, jalview.datamodel, "SequenceNode", jalview.datamodel.BinaryNode); -Clazz.prepareFields (c$, function () { -this.color = java.awt.Color.black; -}); -Clazz.makeConstructor (c$, -function (val, parent, dist, name) { -Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]); -this.dist = dist; -}, "~O,jalview.datamodel.SequenceNode,~N,~S"); -Clazz.makeConstructor (c$, -function (val, parent, name, dist, bootstrap, dummy) { -Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]); -this.dist = dist; -this.bootstrap = bootstrap; -this.dummy = dummy; -}, "~O,jalview.datamodel.SequenceNode,~S,~N,~N,~B"); -Clazz.defineMethod (c$, "isDummy", -function () { -return this.dummy; -}); -Clazz.defineMethod (c$, "isPlaceholder", -function () { -return this.placeholder; -}); -Clazz.defineMethod (c$, "setDummy", -function (newstate) { -var oldstate = this.dummy; -this.dummy = newstate; -return oldstate; -}, "~B"); -Clazz.defineMethod (c$, "setPlaceholder", -function (Placeholder) { -this.placeholder = Placeholder; -}, "~B"); -Clazz.defineMethod (c$, "AscendTree", -function () { -var c = this; -do { -c = c.parent (); -} while ((c != null) && c.dummy); -return c; -}); -Clazz.defineMethod (c$, "isSequenceLabel", -function () { -if (this.name != null && this.name.length > 0) { -for (var c = 0, s = this.name.length; c < s; c++) { -var q = this.name.charAt (c); -if ('0' <= q && q <= '9') continue; -return true; -} -}return false; -}); -}); +Clazz.declarePackage ("jalview.datamodel"); +Clazz.load (["jalview.datamodel.BinaryNode", "java.awt.Color"], "jalview.datamodel.SequenceNode", null, function () { +c$ = Clazz.decorateAsClass (function () { +this.dist = 0; +this.count = 0; +this.height = 0; +this.ycount = 0; +this.color = null; +this.dummy = false; +this.placeholder = false; +Clazz.instantialize (this, arguments); +}, jalview.datamodel, "SequenceNode", jalview.datamodel.BinaryNode); +Clazz.prepareFields (c$, function () { +this.color = java.awt.Color.black; +}); +Clazz.makeConstructor (c$, +function (val, parent, dist, name) { +Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]); +this.dist = dist; +}, "~O,jalview.datamodel.SequenceNode,~N,~S"); +Clazz.makeConstructor (c$, +function (val, parent, name, dist, bootstrap, dummy) { +Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]); +this.dist = dist; +this.bootstrap = bootstrap; +this.dummy = dummy; +}, "~O,jalview.datamodel.SequenceNode,~S,~N,~N,~B"); +Clazz.defineMethod (c$, "isDummy", +function () { +return this.dummy; +}); +Clazz.defineMethod (c$, "isPlaceholder", +function () { +return this.placeholder; +}); +Clazz.defineMethod (c$, "setDummy", +function (newstate) { +var oldstate = this.dummy; +this.dummy = newstate; +return oldstate; +}, "~B"); +Clazz.defineMethod (c$, "setPlaceholder", +function (Placeholder) { +this.placeholder = Placeholder; +}, "~B"); +Clazz.defineMethod (c$, "AscendTree", +function () { +var c = this; +do { +c = c.parent (); +} while ((c != null) && c.dummy); +return c; +}); +Clazz.defineMethod (c$, "isSequenceLabel", +function () { +if (this.name != null && this.name.length > 0) { +for (var c = 0, s = this.name.length; c < s; c++) { +var q = this.name.charAt (c); +if ('0' <= q && q <= '9') continue; +return true; +} +}return false; +}); +});