Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / javax / swing / border / LineBorder.js
index a8358d5..199d013 100644 (file)
@@ -1,87 +1,87 @@
-Clazz.declarePackage ("javax.swing.border");\r
-Clazz.load (["javax.swing.border.AbstractBorder"], "javax.swing.border.LineBorder", ["java.awt.Color", "$.Graphics2D", "$.Insets", "java.awt.geom.Path2D", "$.Rectangle2D", "$.RoundRectangle2D"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.thickness = 0;\r
-this.lineColor = null;\r
-this.roundedCorners = false;\r
-Clazz.instantialize (this, arguments);\r
-}, javax.swing.border, "LineBorder", javax.swing.border.AbstractBorder);\r
-c$.createBlackLineBorder = Clazz.defineMethod (c$, "createBlackLineBorder", \r
-function () {\r
-if (javax.swing.border.LineBorder.blackLine == null) {\r
-javax.swing.border.LineBorder.blackLine =  new javax.swing.border.LineBorder (java.awt.Color.black, 1);\r
-}return javax.swing.border.LineBorder.blackLine;\r
-});\r
-c$.createGrayLineBorder = Clazz.defineMethod (c$, "createGrayLineBorder", \r
-function () {\r
-if (javax.swing.border.LineBorder.grayLine == null) {\r
-javax.swing.border.LineBorder.grayLine =  new javax.swing.border.LineBorder (java.awt.Color.gray, 1);\r
-}return javax.swing.border.LineBorder.grayLine;\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (color) {\r
-this.construct (color, 1, false);\r
-}, "java.awt.Color");\r
-Clazz.makeConstructor (c$, \r
-function (color, thickness) {\r
-this.construct (color, thickness, false);\r
-}, "java.awt.Color,~N");\r
-Clazz.makeConstructor (c$, \r
-function (color, thickness, roundedCorners) {\r
-Clazz.superConstructor (this, javax.swing.border.LineBorder, []);\r
-this.lineColor = color;\r
-this.thickness = thickness;\r
-this.roundedCorners = roundedCorners;\r
-}, "java.awt.Color,~N,~B");\r
-Clazz.overrideMethod (c$, "paintBorder", \r
-function (c, g, x, y, width, height) {\r
-if ((this.thickness > 0) && (Clazz.instanceOf (g, java.awt.Graphics2D))) {\r
-var g2d = g;\r
-var oldColor = g2d.getColor ();\r
-g2d.setColor (this.lineColor);\r
-var outer;\r
-var inner;\r
-var offs = this.thickness;\r
-var size = offs + offs;\r
-if (this.roundedCorners) {\r
-var arc = offs + size;\r
-outer =  new java.awt.geom.RoundRectangle2D.Float (x, y, width, height, arc, arc);\r
-inner =  new java.awt.geom.RoundRectangle2D.Float (x + offs, y + offs, width - size, height - size, arc, arc);\r
-} else {\r
-outer =  new java.awt.geom.Rectangle2D.Float (x, y, width, height);\r
-inner =  new java.awt.geom.Rectangle2D.Float (x + offs, y + offs, width - size, height - size);\r
-}var path =  new java.awt.geom.Path2D.Float (0);\r
-path.append (outer, false);\r
-path.append (inner, false);\r
-g2d.fill (path);\r
-g2d.setColor (oldColor);\r
-}}, "java.awt.Component,java.awt.Graphics,~N,~N,~N,~N");\r
-Clazz.defineMethod (c$, "getBorderInsets", \r
-function (c) {\r
-return  new java.awt.Insets (this.thickness, this.thickness, this.thickness, this.thickness);\r
-}, "java.awt.Component");\r
-Clazz.defineMethod (c$, "getBorderInsets", \r
-function (c, insets) {\r
-insets.left = insets.top = insets.right = insets.bottom = this.thickness;\r
-return insets;\r
-}, "java.awt.Component,java.awt.Insets");\r
-Clazz.defineMethod (c$, "getLineColor", \r
-function () {\r
-return this.lineColor;\r
-});\r
-Clazz.defineMethod (c$, "getThickness", \r
-function () {\r
-return this.thickness;\r
-});\r
-Clazz.defineMethod (c$, "getRoundedCorners", \r
-function () {\r
-return this.roundedCorners;\r
-});\r
-Clazz.overrideMethod (c$, "isBorderOpaque", \r
-function () {\r
-return !this.roundedCorners;\r
-});\r
-Clazz.defineStatics (c$,\r
-"blackLine", null,\r
-"grayLine", null);\r
-});\r
+Clazz.declarePackage ("javax.swing.border");
+Clazz.load (["javax.swing.border.AbstractBorder"], "javax.swing.border.LineBorder", ["java.awt.Color", "$.Graphics2D", "$.Insets", "java.awt.geom.Path2D", "$.Rectangle2D", "$.RoundRectangle2D"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.thickness = 0;
+this.lineColor = null;
+this.roundedCorners = false;
+Clazz.instantialize (this, arguments);
+}, javax.swing.border, "LineBorder", javax.swing.border.AbstractBorder);
+c$.createBlackLineBorder = Clazz.defineMethod (c$, "createBlackLineBorder", 
+function () {
+if (javax.swing.border.LineBorder.blackLine == null) {
+javax.swing.border.LineBorder.blackLine =  new javax.swing.border.LineBorder (java.awt.Color.black, 1);
+}return javax.swing.border.LineBorder.blackLine;
+});
+c$.createGrayLineBorder = Clazz.defineMethod (c$, "createGrayLineBorder", 
+function () {
+if (javax.swing.border.LineBorder.grayLine == null) {
+javax.swing.border.LineBorder.grayLine =  new javax.swing.border.LineBorder (java.awt.Color.gray, 1);
+}return javax.swing.border.LineBorder.grayLine;
+});
+Clazz.makeConstructor (c$, 
+function (color) {
+this.construct (color, 1, false);
+}, "java.awt.Color");
+Clazz.makeConstructor (c$, 
+function (color, thickness) {
+this.construct (color, thickness, false);
+}, "java.awt.Color,~N");
+Clazz.makeConstructor (c$, 
+function (color, thickness, roundedCorners) {
+Clazz.superConstructor (this, javax.swing.border.LineBorder, []);
+this.lineColor = color;
+this.thickness = thickness;
+this.roundedCorners = roundedCorners;
+}, "java.awt.Color,~N,~B");
+Clazz.overrideMethod (c$, "paintBorder", 
+function (c, g, x, y, width, height) {
+if ((this.thickness > 0) && (Clazz.instanceOf (g, java.awt.Graphics2D))) {
+var g2d = g;
+var oldColor = g2d.getColor ();
+g2d.setColor (this.lineColor);
+var outer;
+var inner;
+var offs = this.thickness;
+var size = offs + offs;
+if (this.roundedCorners) {
+var arc = offs + size;
+outer =  new java.awt.geom.RoundRectangle2D.Float (x, y, width, height, arc, arc);
+inner =  new java.awt.geom.RoundRectangle2D.Float (x + offs, y + offs, width - size, height - size, arc, arc);
+} else {
+outer =  new java.awt.geom.Rectangle2D.Float (x, y, width, height);
+inner =  new java.awt.geom.Rectangle2D.Float (x + offs, y + offs, width - size, height - size);
+}var path =  new java.awt.geom.Path2D.Float (0);
+path.append (outer, false);
+path.append (inner, false);
+g2d.fill (path);
+g2d.setColor (oldColor);
+}}, "java.awt.Component,java.awt.Graphics,~N,~N,~N,~N");
+Clazz.defineMethod (c$, "getBorderInsets", 
+function (c) {
+return  new java.awt.Insets (this.thickness, this.thickness, this.thickness, this.thickness);
+}, "java.awt.Component");
+Clazz.defineMethod (c$, "getBorderInsets", 
+function (c, insets) {
+insets.left = insets.top = insets.right = insets.bottom = this.thickness;
+return insets;
+}, "java.awt.Component,java.awt.Insets");
+Clazz.defineMethod (c$, "getLineColor", 
+function () {
+return this.lineColor;
+});
+Clazz.defineMethod (c$, "getThickness", 
+function () {
+return this.thickness;
+});
+Clazz.defineMethod (c$, "getRoundedCorners", 
+function () {
+return this.roundedCorners;
+});
+Clazz.overrideMethod (c$, "isBorderOpaque", 
+function () {
+return !this.roundedCorners;
+});
+Clazz.defineStatics (c$,
+"blackLine", null,
+"grayLine", null);
+});