1 Clazz.declarePackage ("java.awt.geom");
\r
2 Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.QuadIterator", ["java.util.NoSuchElementException"], function () {
\r
3 c$ = Clazz.decorateAsClass (function () {
\r
7 Clazz.instantialize (this, arguments);
\r
8 }, java.awt.geom, "QuadIterator", null, java.awt.geom.PathIterator);
\r
9 Clazz.makeConstructor (c$,
\r
13 }, "java.awt.geom.QuadCurve2D,java.awt.geom.AffineTransform");
\r
14 Clazz.overrideMethod (c$, "getWindingRule",
\r
18 Clazz.overrideMethod (c$, "isDone",
\r
20 return (this.index > 1);
\r
22 Clazz.overrideMethod (c$, "next",
\r
26 Clazz.defineMethod (c$, "currentSegment",
\r
28 if (this.isDone ()) {
\r
29 throw new java.util.NoSuchElementException ("quad iterator iterator out of bounds");
\r
31 if (this.index == 0) {
\r
32 coords[0] = this.quad.getX1 ();
\r
33 coords[1] = this.quad.getY1 ();
\r
36 coords[0] = this.quad.getCtrlX ();
\r
37 coords[1] = this.quad.getCtrlY ();
\r
38 coords[2] = this.quad.getX2 ();
\r
39 coords[3] = this.quad.getY2 ();
\r
41 }if (this.affine != null) {
\r
42 this.affine.transform (coords, 0, coords, 0, this.index == 0 ? 1 : 2);
\r
45 Clazz.defineMethod (c$, "currentSegment",
\r
47 if (this.isDone ()) {
\r
48 throw new java.util.NoSuchElementException ("quad iterator iterator out of bounds");
\r
50 if (this.index == 0) {
\r
51 coords[0] = this.quad.getX1 ();
\r
52 coords[1] = this.quad.getY1 ();
\r
55 coords[0] = this.quad.getCtrlX ();
\r
56 coords[1] = this.quad.getCtrlY ();
\r
57 coords[2] = this.quad.getX2 ();
\r
58 coords[3] = this.quad.getY2 ();
\r
60 }if (this.affine != null) {
\r
61 this.affine.transform (coords, 0, coords, 0, this.index == 0 ? 1 : 2);
\r