Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / border / CompoundBorder.js
index dc73b65..06b6c33 100644 (file)
@@ -1,74 +1,74 @@
-Clazz.declarePackage ("javax.swing.border");\r
-Clazz.load (["javax.swing.border.AbstractBorder"], "javax.swing.border.CompoundBorder", ["java.awt.Insets"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.outsideBorder = null;\r
-this.insideBorder = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.border, "CompoundBorder", javax.swing.border.AbstractBorder);\r
-Clazz.makeConstructor (c$, \r
-function () {\r
-Clazz.superConstructor (this, javax.swing.border.CompoundBorder, []);\r
-this.outsideBorder = null;\r
-this.insideBorder = null;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (outsideBorder, insideBorder) {\r
-Clazz.superConstructor (this, javax.swing.border.CompoundBorder, []);\r
-this.outsideBorder = outsideBorder;\r
-this.insideBorder = insideBorder;\r
-}, "javax.swing.border.Border,javax.swing.border.Border");\r
-Clazz.overrideMethod (c$, "isBorderOpaque", \r
-function () {\r
-return (this.outsideBorder == null || this.outsideBorder.isBorderOpaque ()) && (this.insideBorder == null || this.insideBorder.isBorderOpaque ());\r
-});\r
-Clazz.overrideMethod (c$, "paintBorder", \r
-function (c, g, x, y, width, height) {\r
-var nextInsets;\r
-var px;\r
-var py;\r
-var pw;\r
-var ph;\r
-px = x;\r
-py = y;\r
-pw = width;\r
-ph = height;\r
-if (this.outsideBorder != null) {\r
-this.outsideBorder.paintBorder (c, g, px, py, pw, ph);\r
-nextInsets = this.outsideBorder.getBorderInsets (c);\r
-px += nextInsets.left;\r
-py += nextInsets.top;\r
-pw = pw - nextInsets.right - nextInsets.left;\r
-ph = ph - nextInsets.bottom - nextInsets.top;\r
-}if (this.insideBorder != null) this.insideBorder.paintBorder (c, g, px, py, pw, ph);\r
-}, "java.awt.Component,java.awt.Graphics,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "getBorderInsets", \r
-function (c, insets) {\r
-var nextInsets;\r
-insets.top = insets.left = insets.right = insets.bottom = 0;\r
-if (this.outsideBorder != null) {\r
-nextInsets = this.outsideBorder.getBorderInsets (c);\r
-insets.top += nextInsets.top;\r
-insets.left += nextInsets.left;\r
-insets.right += nextInsets.right;\r
-insets.bottom += nextInsets.bottom;\r
-}if (this.insideBorder != null) {\r
-nextInsets = this.insideBorder.getBorderInsets (c);\r
-insets.top += nextInsets.top;\r
-insets.left += nextInsets.left;\r
-insets.right += nextInsets.right;\r
-insets.bottom += nextInsets.bottom;\r
-}return insets;\r
-}, "java.awt.Component,java.awt.Insets");\r
-Clazz.defineMethod (c$, "getBorderInsets", \r
-function (c) {\r
-return this.getBorderInsets (c,  new java.awt.Insets (0, 0, 0, 0));\r
-}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getOutsideBorder", \r
-function () {\r
-return this.outsideBorder;\r
-});\r
-Clazz.defineMethod (c$, "getInsideBorder", \r
-function () {\r
-return this.insideBorder;\r
-});\r
-});\r
+Clazz.declarePackage ("javax.swing.border");
+Clazz.load (["javax.swing.border.AbstractBorder"], "javax.swing.border.CompoundBorder", ["java.awt.Insets"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.outsideBorder = null;
+this.insideBorder = null;
+Clazz.instantialize (this, arguments);
+}, javax.swing.border, "CompoundBorder", javax.swing.border.AbstractBorder);
+Clazz.makeConstructor (c$, 
+function () {
+Clazz.superConstructor (this, javax.swing.border.CompoundBorder, []);
+this.outsideBorder = null;
+this.insideBorder = null;
+});
+Clazz.makeConstructor (c$, 
+function (outsideBorder, insideBorder) {
+Clazz.superConstructor (this, javax.swing.border.CompoundBorder, []);
+this.outsideBorder = outsideBorder;
+this.insideBorder = insideBorder;
+}, "javax.swing.border.Border,javax.swing.border.Border");
+Clazz.overrideMethod (c$, "isBorderOpaque", 
+function () {
+return (this.outsideBorder == null || this.outsideBorder.isBorderOpaque ()) && (this.insideBorder == null || this.insideBorder.isBorderOpaque ());
+});
+Clazz.overrideMethod (c$, "paintBorder", 
+function (c, g, x, y, width, height) {
+var nextInsets;
+var px;
+var py;
+var pw;
+var ph;
+px = x;
+py = y;
+pw = width;
+ph = height;
+if (this.outsideBorder != null) {
+this.outsideBorder.paintBorder (c, g, px, py, pw, ph);
+nextInsets = this.outsideBorder.getBorderInsets (c);
+px += nextInsets.left;
+py += nextInsets.top;
+pw = pw - nextInsets.right - nextInsets.left;
+ph = ph - nextInsets.bottom - nextInsets.top;
+}if (this.insideBorder != null) this.insideBorder.paintBorder (c, g, px, py, pw, ph);
+}, "java.awt.Component,java.awt.Graphics,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "getBorderInsets", 
+function (c, insets) {
+var nextInsets;
+insets.top = insets.left = insets.right = insets.bottom = 0;
+if (this.outsideBorder != null) {
+nextInsets = this.outsideBorder.getBorderInsets (c);
+insets.top += nextInsets.top;
+insets.left += nextInsets.left;
+insets.right += nextInsets.right;
+insets.bottom += nextInsets.bottom;
+}if (this.insideBorder != null) {
+nextInsets = this.insideBorder.getBorderInsets (c);
+insets.top += nextInsets.top;
+insets.left += nextInsets.left;
+insets.right += nextInsets.right;
+insets.bottom += nextInsets.bottom;
+}return insets;
+}, "java.awt.Component,java.awt.Insets");
+Clazz.defineMethod (c$, "getBorderInsets", 
+function (c) {
+return this.getBorderInsets (c,  new java.awt.Insets (0, 0, 0, 0));
+}, "java.awt.Component");
+Clazz.defineMethod (c$, "getOutsideBorder", 
+function () {
+return this.outsideBorder;
+});
+Clazz.defineMethod (c$, "getInsideBorder", 
+function () {
+return this.insideBorder;
+});
+});