Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / geom / RectIterator.js
index cf61dce..252ec84 100644 (file)
@@ -1,66 +1,66 @@
-Clazz.declarePackage ("java.awt.geom");\r
-Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.RectIterator", ["java.util.NoSuchElementException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.x = 0;\r
-this.y = 0;\r
-this.w = 0;\r
-this.h = 0;\r
-this.affine = null;\r
-this.index = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt.geom, "RectIterator", null, java.awt.geom.PathIterator);\r
-Clazz.makeConstructor (c$, \r
-function (r, at) {\r
-this.x = r.getX ();\r
-this.y = r.getY ();\r
-this.w = r.getWidth ();\r
-this.h = r.getHeight ();\r
-this.affine = at;\r
-if (this.w < 0 || this.h < 0) {\r
-this.index = 6;\r
-}}, "java.awt.geom.Rectangle2D,java.awt.geom.AffineTransform");\r
-Clazz.overrideMethod (c$, "getWindingRule", \r
-function () {\r
-return 1;\r
-});\r
-Clazz.overrideMethod (c$, "isDone", \r
-function () {\r
-return this.index > 5;\r
-});\r
-Clazz.overrideMethod (c$, "next", \r
-function () {\r
-this.index++;\r
-});\r
-Clazz.defineMethod (c$, "currentSegment", \r
-function (coords) {\r
-if (this.isDone ()) {\r
-throw  new java.util.NoSuchElementException ("rect iterator out of bounds");\r
-}if (this.index == 5) {\r
-return 4;\r
-}coords[0] = this.x;\r
-coords[1] = this.y;\r
-if (this.index == 1 || this.index == 2) {\r
-coords[0] += this.w;\r
-}if (this.index == 2 || this.index == 3) {\r
-coords[1] += this.h;\r
-}if (this.affine != null) {\r
-this.affine.transform (coords, 0, coords, 0, 1);\r
-}return (this.index == 0 ? 0 : 1);\r
-}, "~A");\r
-Clazz.defineMethod (c$, "currentSegment", \r
-function (coords) {\r
-if (this.isDone ()) {\r
-throw  new java.util.NoSuchElementException ("rect iterator out of bounds");\r
-}if (this.index == 5) {\r
-return 4;\r
-}coords[0] = this.x;\r
-coords[1] = this.y;\r
-if (this.index == 1 || this.index == 2) {\r
-coords[0] += this.w;\r
-}if (this.index == 2 || this.index == 3) {\r
-coords[1] += this.h;\r
-}if (this.affine != null) {\r
-this.affine.transform (coords, 0, coords, 0, 1);\r
-}return (this.index == 0 ? 0 : 1);\r
-}, "~A");\r
-});\r
+Clazz.declarePackage ("java.awt.geom");
+Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.RectIterator", ["java.util.NoSuchElementException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.x = 0;
+this.y = 0;
+this.w = 0;
+this.h = 0;
+this.affine = null;
+this.index = 0;
+Clazz.instantialize (this, arguments);
+}, java.awt.geom, "RectIterator", null, java.awt.geom.PathIterator);
+Clazz.makeConstructor (c$, 
+function (r, at) {
+this.x = r.getX ();
+this.y = r.getY ();
+this.w = r.getWidth ();
+this.h = r.getHeight ();
+this.affine = at;
+if (this.w < 0 || this.h < 0) {
+this.index = 6;
+}}, "java.awt.geom.Rectangle2D,java.awt.geom.AffineTransform");
+Clazz.overrideMethod (c$, "getWindingRule", 
+function () {
+return 1;
+});
+Clazz.overrideMethod (c$, "isDone", 
+function () {
+return this.index > 5;
+});
+Clazz.overrideMethod (c$, "next", 
+function () {
+this.index++;
+});
+Clazz.defineMethod (c$, "currentSegment", 
+function (coords) {
+if (this.isDone ()) {
+throw  new java.util.NoSuchElementException ("rect iterator out of bounds");
+}if (this.index == 5) {
+return 4;
+}coords[0] = this.x;
+coords[1] = this.y;
+if (this.index == 1 || this.index == 2) {
+coords[0] += this.w;
+}if (this.index == 2 || this.index == 3) {
+coords[1] += this.h;
+}if (this.affine != null) {
+this.affine.transform (coords, 0, coords, 0, 1);
+}return (this.index == 0 ? 0 : 1);
+}, "~A");
+Clazz.defineMethod (c$, "currentSegment", 
+function (coords) {
+if (this.isDone ()) {
+throw  new java.util.NoSuchElementException ("rect iterator out of bounds");
+}if (this.index == 5) {
+return 4;
+}coords[0] = this.x;
+coords[1] = this.y;
+if (this.index == 1 || this.index == 2) {
+coords[0] += this.w;
+}if (this.index == 2 || this.index == 3) {
+coords[1] += this.h;
+}if (this.affine != null) {
+this.affine.transform (coords, 0, coords, 0, 1);
+}return (this.index == 0 ? 0 : 1);
+}, "~A");
+});