Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / Insets.js
index 2784568..4a29e2a 100644 (file)
@@ -1,56 +1,56 @@
-Clazz.declarePackage ("java.awt");\r
-Clazz.load (null, "java.awt.Insets", ["java.lang.InternalError"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.top = 0;\r
-this.left = 0;\r
-this.bottom = 0;\r
-this.right = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt, "Insets", null, [Cloneable, java.io.Serializable]);\r
-Clazz.makeConstructor (c$, \r
-function (top, left, bottom, right) {\r
-this.top = top;\r
-this.left = left;\r
-this.bottom = bottom;\r
-this.right = right;\r
-}, "~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "set", \r
-function (top, left, bottom, right) {\r
-this.top = top;\r
-this.left = left;\r
-this.bottom = bottom;\r
-this.right = right;\r
-}, "~N,~N,~N,~N");\r
-Clazz.overrideMethod (c$, "equals", \r
-function (obj) {\r
-if (Clazz.instanceOf (obj, java.awt.Insets)) {\r
-var insets = obj;\r
-return ((this.top == insets.top) && (this.left == insets.left) && (this.bottom == insets.bottom) && (this.right == insets.right));\r
-}return false;\r
-}, "~O");\r
-Clazz.overrideMethod (c$, "hashCode", \r
-function () {\r
-var sum1 = this.left + this.bottom;\r
-var sum2 = this.right + this.top;\r
-var val1 = Clazz.doubleToInt (sum1 * (sum1 + 1) / 2) + this.left;\r
-var val2 = Clazz.doubleToInt (sum2 * (sum2 + 1) / 2) + this.top;\r
-var sum3 = val1 + val2;\r
-return Clazz.doubleToInt (sum3 * (sum3 + 1) / 2) + val2;\r
-});\r
-Clazz.overrideMethod (c$, "toString", \r
-function () {\r
-return this.getClass ().getName () + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]";\r
-});\r
-Clazz.defineMethod (c$, "clone", \r
-function () {\r
-try {\r
-return Clazz.superCall (this, java.awt.Insets, "clone", []);\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, CloneNotSupportedException)) {\r
-throw  new InternalError ();\r
-} else {\r
-throw e;\r
-}\r
-}\r
-});\r
-});\r
+Clazz.declarePackage ("java.awt");
+Clazz.load (null, "java.awt.Insets", ["java.lang.InternalError"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.top = 0;
+this.left = 0;
+this.bottom = 0;
+this.right = 0;
+Clazz.instantialize (this, arguments);
+}, java.awt, "Insets", null, [Cloneable, java.io.Serializable]);
+Clazz.makeConstructor (c$, 
+function (top, left, bottom, right) {
+this.top = top;
+this.left = left;
+this.bottom = bottom;
+this.right = right;
+}, "~N,~N,~N,~N");
+Clazz.defineMethod (c$, "set", 
+function (top, left, bottom, right) {
+this.top = top;
+this.left = left;
+this.bottom = bottom;
+this.right = right;
+}, "~N,~N,~N,~N");
+Clazz.overrideMethod (c$, "equals", 
+function (obj) {
+if (Clazz.instanceOf (obj, java.awt.Insets)) {
+var insets = obj;
+return ((this.top == insets.top) && (this.left == insets.left) && (this.bottom == insets.bottom) && (this.right == insets.right));
+}return false;
+}, "~O");
+Clazz.overrideMethod (c$, "hashCode", 
+function () {
+var sum1 = this.left + this.bottom;
+var sum2 = this.right + this.top;
+var val1 = Clazz.doubleToInt (sum1 * (sum1 + 1) / 2) + this.left;
+var val2 = Clazz.doubleToInt (sum2 * (sum2 + 1) / 2) + this.top;
+var sum3 = val1 + val2;
+return Clazz.doubleToInt (sum3 * (sum3 + 1) / 2) + val2;
+});
+Clazz.overrideMethod (c$, "toString", 
+function () {
+return this.getClass ().getName () + "[top=" + this.top + ",left=" + this.left + ",bottom=" + this.bottom + ",right=" + this.right + "]";
+});
+Clazz.defineMethod (c$, "clone", 
+function () {
+try {
+return Clazz.superCall (this, java.awt.Insets, "clone", []);
+} catch (e) {
+if (Clazz.exceptionOf (e, CloneNotSupportedException)) {
+throw  new InternalError ();
+} else {
+throw e;
+}
+}
+});
+});