1 Clazz.declarePackage ("jalview.datamodel");
2 Clazz.load (["jalview.datamodel.BinaryNode", "java.awt.Color"], "jalview.datamodel.SequenceNode", null, function () {
3 c$ = Clazz.decorateAsClass (function () {
10 this.placeholder = false;
11 Clazz.instantialize (this, arguments);
12 }, jalview.datamodel, "SequenceNode", jalview.datamodel.BinaryNode);
13 Clazz.prepareFields (c$, function () {
14 this.color = java.awt.Color.black;
16 Clazz.makeConstructor (c$,
17 function (val, parent, dist, name) {
18 Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]);
20 }, "~O,jalview.datamodel.SequenceNode,~N,~S");
21 Clazz.makeConstructor (c$,
22 function (val, parent, name, dist, bootstrap, dummy) {
23 Clazz.superConstructor (this, jalview.datamodel.SequenceNode, [val, parent, name]);
25 this.bootstrap = bootstrap;
27 }, "~O,jalview.datamodel.SequenceNode,~S,~N,~N,~B");
28 Clazz.defineMethod (c$, "isDummy",
32 Clazz.defineMethod (c$, "isPlaceholder",
34 return this.placeholder;
36 Clazz.defineMethod (c$, "setDummy",
38 var oldstate = this.dummy;
39 this.dummy = newstate;
42 Clazz.defineMethod (c$, "setPlaceholder",
43 function (Placeholder) {
44 this.placeholder = Placeholder;
46 Clazz.defineMethod (c$, "AscendTree",
51 } while ((c != null) && c.dummy);
54 Clazz.defineMethod (c$, "isSequenceLabel",
56 if (this.name != null && this.name.length > 0) {
57 for (var c = 0, s = this.name.length; c < s; c++) {
58 var q = this.name.charAt (c);
59 if ('0' <= q && q <= '9') continue;