Merge branch 'master' of https://source.jalview.org/git/jalviewjs.git
[jalviewjs.git] / site / j2s / java / awt / geom / LineIterator.js
index ccccabd..b3c44fe 100644 (file)
@@ -1,60 +1,60 @@
-Clazz.declarePackage ("java.awt.geom");\r
-Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.LineIterator", ["java.util.NoSuchElementException"], function () {\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.line = null;\r
-this.affine = null;\r
-this.index = 0;\r
-Clazz.instantialize (this, arguments);\r
-}, java.awt.geom, "LineIterator", null, java.awt.geom.PathIterator);\r
-Clazz.makeConstructor (c$, \r
-function (l, at) {\r
-this.line = l;\r
-this.affine = at;\r
-}, "java.awt.geom.Line2D,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 > 1);\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 ("line iterator out of bounds");\r
-}var type;\r
-if (this.index == 0) {\r
-coords[0] = this.line.getX1 ();\r
-coords[1] = this.line.getY1 ();\r
-type = 0;\r
-} else {\r
-coords[0] = this.line.getX2 ();\r
-coords[1] = this.line.getY2 ();\r
-type = 1;\r
-}if (this.affine != null) {\r
-this.affine.transform (coords, 0, coords, 0, 1);\r
-}return type;\r
-}, "~A");\r
-Clazz.defineMethod (c$, "currentSegment", \r
-function (coords) {\r
-if (this.isDone ()) {\r
-throw  new java.util.NoSuchElementException ("line iterator out of bounds");\r
-}var type;\r
-if (this.index == 0) {\r
-coords[0] = this.line.getX1 ();\r
-coords[1] = this.line.getY1 ();\r
-type = 0;\r
-} else {\r
-coords[0] = this.line.getX2 ();\r
-coords[1] = this.line.getY2 ();\r
-type = 1;\r
-}if (this.affine != null) {\r
-this.affine.transform (coords, 0, coords, 0, 1);\r
-}return type;\r
-}, "~A");\r
-});\r
+Clazz.declarePackage ("java.awt.geom");
+Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.LineIterator", ["java.util.NoSuchElementException"], function () {
+c$ = Clazz.decorateAsClass (function () {
+this.line = null;
+this.affine = null;
+this.index = 0;
+Clazz.instantialize (this, arguments);
+}, java.awt.geom, "LineIterator", null, java.awt.geom.PathIterator);
+Clazz.makeConstructor (c$, 
+function (l, at) {
+this.line = l;
+this.affine = at;
+}, "java.awt.geom.Line2D,java.awt.geom.AffineTransform");
+Clazz.overrideMethod (c$, "getWindingRule", 
+function () {
+return 1;
+});
+Clazz.overrideMethod (c$, "isDone", 
+function () {
+return (this.index > 1);
+});
+Clazz.overrideMethod (c$, "next", 
+function () {
+this.index++;
+});
+Clazz.defineMethod (c$, "currentSegment", 
+function (coords) {
+if (this.isDone ()) {
+throw  new java.util.NoSuchElementException ("line iterator out of bounds");
+}var type;
+if (this.index == 0) {
+coords[0] = this.line.getX1 ();
+coords[1] = this.line.getY1 ();
+type = 0;
+} else {
+coords[0] = this.line.getX2 ();
+coords[1] = this.line.getY2 ();
+type = 1;
+}if (this.affine != null) {
+this.affine.transform (coords, 0, coords, 0, 1);
+}return type;
+}, "~A");
+Clazz.defineMethod (c$, "currentSegment", 
+function (coords) {
+if (this.isDone ()) {
+throw  new java.util.NoSuchElementException ("line iterator out of bounds");
+}var type;
+if (this.index == 0) {
+coords[0] = this.line.getX1 ();
+coords[1] = this.line.getY1 ();
+type = 0;
+} else {
+coords[0] = this.line.getX2 ();
+coords[1] = this.line.getY2 ();
+type = 1;
+}if (this.affine != null) {
+this.affine.transform (coords, 0, coords, 0, 1);
+}return type;
+}, "~A");
+});