Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / swingjs / j2s / javax / swing / text / TabStop.js
index 8900c41..52f51c2 100644 (file)
@@ -1,79 +1,79 @@
-Clazz.declarePackage ("javax.swing.text");\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.alignment = 0;\r
-this.position = 0;\r
-this.leader = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.text, "TabStop");\r
-Clazz.makeConstructor (c$, \r
-function (pos) {\r
-this.construct (pos, 0, 0);\r
-}, "~N");\r
-Clazz.makeConstructor (c$, \r
-function (pos, align, leader) {\r
-this.alignment = align;\r
-this.leader = leader;\r
-this.position = pos;\r
-}, "~N,~N,~N");\r
-Clazz.defineMethod (c$, "getPosition", \r
-function () {\r
-return this.position;\r
-});\r
-Clazz.defineMethod (c$, "getAlignment", \r
-function () {\r
-return this.alignment;\r
-});\r
-Clazz.defineMethod (c$, "getLeader", \r
-function () {\r
-return this.leader;\r
-});\r
-Clazz.overrideMethod (c$, "equals", \r
-function (other) {\r
-if (other === this) {\r
-return true;\r
-}if (Clazz.instanceOf (other, javax.swing.text.TabStop)) {\r
-var o = other;\r
-return ((this.alignment == o.alignment) && (this.leader == o.leader) && (this.position == o.position));\r
-}return false;\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-return this.alignment ^ this.leader ^ Math.round (this.position);\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-var buf;\r
-switch (this.alignment) {\r
-default:\r
-case 0:\r
-buf = "";\r
-break;\r
-case 1:\r
-buf = "right ";\r
-break;\r
-case 2:\r
-buf = "center ";\r
-break;\r
-case 4:\r
-buf = "decimal ";\r
-break;\r
-case 5:\r
-buf = "bar ";\r
-break;\r
-}\r
-buf = buf + "tab @" + String.valueOf (this.position);\r
-if (this.leader != 0) buf = buf + " (w/leaders)";\r
-return buf;\r
-});\r
-Clazz.defineStatics (c$,\r
-"ALIGN_LEFT", 0,\r
-"ALIGN_RIGHT", 1,\r
-"ALIGN_CENTER", 2,\r
-"ALIGN_DECIMAL", 4,\r
-"ALIGN_BAR", 5,\r
-"LEAD_NONE", 0,\r
-"LEAD_DOTS", 1,\r
-"LEAD_HYPHENS", 2,\r
-"LEAD_UNDERLINE", 3,\r
-"LEAD_THICKLINE", 4,\r
-"LEAD_EQUALS", 5);\r
+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);