X-Git-Url: http://source.jalview.org/gitweb/?p=jalviewjs.git;a=blobdiff_plain;f=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2Ftext%2FTabStop.js;fp=site%2Fswingjs%2Fj2s%2Fjavax%2Fswing%2Ftext%2FTabStop.js;h=52f51c20864b90ab2d6087e04173244f03bd69f2;hp=8900c4128d0889ea642529efbd417b1fb4f8d278;hb=b9b7a352eee79b7764c3b09c9d19663075061d8c;hpb=7301a2415adab88038b291fc54caeeb3a5a47a44 diff --git a/site/swingjs/j2s/javax/swing/text/TabStop.js b/site/swingjs/j2s/javax/swing/text/TabStop.js index 8900c41..52f51c2 100644 --- a/site/swingjs/j2s/javax/swing/text/TabStop.js +++ b/site/swingjs/j2s/javax/swing/text/TabStop.js @@ -1,79 +1,79 @@ -Clazz.declarePackage ("javax.swing.text"); -c$ = Clazz.decorateAsClass (function () { -this.alignment = 0; -this.position = 0; -this.leader = 0; -Clazz.instantialize (this, arguments); -}, javax.swing.text, "TabStop"); -Clazz.makeConstructor (c$, -function (pos) { -this.construct (pos, 0, 0); -}, "~N"); -Clazz.makeConstructor (c$, -function (pos, align, leader) { -this.alignment = align; -this.leader = leader; -this.position = pos; -}, "~N,~N,~N"); -Clazz.defineMethod (c$, "getPosition", -function () { -return this.position; -}); -Clazz.defineMethod (c$, "getAlignment", -function () { -return this.alignment; -}); -Clazz.defineMethod (c$, "getLeader", -function () { -return this.leader; -}); -Clazz.overrideMethod (c$, "equals", -function (other) { -if (other === this) { -return true; -}if (Clazz.instanceOf (other, javax.swing.text.TabStop)) { -var o = other; -return ((this.alignment == o.alignment) && (this.leader == o.leader) && (this.position == o.position)); -}return false; -}, "~O"); -Clazz.overrideMethod (c$, "hashCode", -function () { -return this.alignment ^ this.leader ^ Math.round (this.position); -}); -Clazz.overrideMethod (c$, "toString", -function () { -var buf; -switch (this.alignment) { -default: -case 0: -buf = ""; -break; -case 1: -buf = "right "; -break; -case 2: -buf = "center "; -break; -case 4: -buf = "decimal "; -break; -case 5: -buf = "bar "; -break; -} -buf = buf + "tab @" + String.valueOf (this.position); -if (this.leader != 0) buf = buf + " (w/leaders)"; -return buf; -}); -Clazz.defineStatics (c$, -"ALIGN_LEFT", 0, -"ALIGN_RIGHT", 1, -"ALIGN_CENTER", 2, -"ALIGN_DECIMAL", 4, -"ALIGN_BAR", 5, -"LEAD_NONE", 0, -"LEAD_DOTS", 1, -"LEAD_HYPHENS", 2, -"LEAD_UNDERLINE", 3, -"LEAD_THICKLINE", 4, -"LEAD_EQUALS", 5); +Clazz.declarePackage ("javax.swing.text"); +c$ = Clazz.decorateAsClass (function () { +this.alignment = 0; +this.position = 0; +this.leader = 0; +Clazz.instantialize (this, arguments); +}, javax.swing.text, "TabStop"); +Clazz.makeConstructor (c$, +function (pos) { +this.construct (pos, 0, 0); +}, "~N"); +Clazz.makeConstructor (c$, +function (pos, align, leader) { +this.alignment = align; +this.leader = leader; +this.position = pos; +}, "~N,~N,~N"); +Clazz.defineMethod (c$, "getPosition", +function () { +return this.position; +}); +Clazz.defineMethod (c$, "getAlignment", +function () { +return this.alignment; +}); +Clazz.defineMethod (c$, "getLeader", +function () { +return this.leader; +}); +Clazz.overrideMethod (c$, "equals", +function (other) { +if (other === this) { +return true; +}if (Clazz.instanceOf (other, javax.swing.text.TabStop)) { +var o = other; +return ((this.alignment == o.alignment) && (this.leader == o.leader) && (this.position == o.position)); +}return false; +}, "~O"); +Clazz.overrideMethod (c$, "hashCode", +function () { +return this.alignment ^ this.leader ^ Math.round (this.position); +}); +Clazz.overrideMethod (c$, "toString", +function () { +var buf; +switch (this.alignment) { +default: +case 0: +buf = ""; +break; +case 1: +buf = "right "; +break; +case 2: +buf = "center "; +break; +case 4: +buf = "decimal "; +break; +case 5: +buf = "bar "; +break; +} +buf = buf + "tab @" + String.valueOf (this.position); +if (this.leader != 0) buf = buf + " (w/leaders)"; +return buf; +}); +Clazz.defineStatics (c$, +"ALIGN_LEFT", 0, +"ALIGN_RIGHT", 1, +"ALIGN_CENTER", 2, +"ALIGN_DECIMAL", 4, +"ALIGN_BAR", 5, +"LEAD_NONE", 0, +"LEAD_DOTS", 1, +"LEAD_HYPHENS", 2, +"LEAD_UNDERLINE", 3, +"LEAD_THICKLINE", 4, +"LEAD_EQUALS", 5);