1 Clazz.declarePackage ("java.awt.geom");
2 Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.LineIterator", ["java.util.NoSuchElementException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, java.awt.geom, "LineIterator", null, java.awt.geom.PathIterator);
9 Clazz.makeConstructor (c$,
13 }, "java.awt.geom.Line2D,java.awt.geom.AffineTransform");
14 Clazz.overrideMethod (c$, "getWindingRule",
18 Clazz.overrideMethod (c$, "isDone",
20 return (this.index > 1);
22 Clazz.overrideMethod (c$, "next",
26 Clazz.defineMethod (c$, "currentSegment",
29 throw new java.util.NoSuchElementException ("line iterator out of bounds");
31 if (this.index == 0) {
32 coords[0] = this.line.getX1 ();
33 coords[1] = this.line.getY1 ();
36 coords[0] = this.line.getX2 ();
37 coords[1] = this.line.getY2 ();
39 }if (this.affine != null) {
40 this.affine.transform (coords, 0, coords, 0, 1);
43 Clazz.defineMethod (c$, "currentSegment",
46 throw new java.util.NoSuchElementException ("line iterator out of bounds");
48 if (this.index == 0) {
49 coords[0] = this.line.getX1 ();
50 coords[1] = this.line.getY1 ();
53 coords[0] = this.line.getX2 ();
54 coords[1] = this.line.getY2 ();
56 }if (this.affine != null) {
57 this.affine.transform (coords, 0, coords, 0, 1);