1 Clazz.declarePackage ("java.awt.geom");
2 Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.QuadIterator", ["java.util.NoSuchElementException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
7 Clazz.instantialize (this, arguments);
8 }, java.awt.geom, "QuadIterator", null, java.awt.geom.PathIterator);
9 Clazz.makeConstructor (c$,
13 }, "java.awt.geom.QuadCurve2D,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 ("quad iterator iterator out of bounds");
31 if (this.index == 0) {
32 coords[0] = this.quad.getX1 ();
33 coords[1] = this.quad.getY1 ();
36 coords[0] = this.quad.getCtrlX ();
37 coords[1] = this.quad.getCtrlY ();
38 coords[2] = this.quad.getX2 ();
39 coords[3] = this.quad.getY2 ();
41 }if (this.affine != null) {
42 this.affine.transform (coords, 0, coords, 0, this.index == 0 ? 1 : 2);
45 Clazz.defineMethod (c$, "currentSegment",
48 throw new java.util.NoSuchElementException ("quad iterator iterator out of bounds");
50 if (this.index == 0) {
51 coords[0] = this.quad.getX1 ();
52 coords[1] = this.quad.getY1 ();
55 coords[0] = this.quad.getCtrlX ();
56 coords[1] = this.quad.getCtrlY ();
57 coords[2] = this.quad.getX2 ();
58 coords[3] = this.quad.getY2 ();
60 }if (this.affine != null) {
61 this.affine.transform (coords, 0, coords, 0, this.index == 0 ? 1 : 2);