1 Clazz.declarePackage ("java.awt.geom");
2 Clazz.load (["java.awt.geom.PathIterator"], "java.awt.geom.RectIterator", ["java.util.NoSuchElementException"], function () {
3 c$ = Clazz.decorateAsClass (function () {
10 Clazz.instantialize (this, arguments);
11 }, java.awt.geom, "RectIterator", null, java.awt.geom.PathIterator);
12 Clazz.makeConstructor (c$,
16 this.w = r.getWidth ();
17 this.h = r.getHeight ();
19 if (this.w < 0 || this.h < 0) {
21 }}, "java.awt.geom.Rectangle2D,java.awt.geom.AffineTransform");
22 Clazz.overrideMethod (c$, "getWindingRule",
26 Clazz.overrideMethod (c$, "isDone",
28 return this.index > 5;
30 Clazz.overrideMethod (c$, "next",
34 Clazz.defineMethod (c$, "currentSegment",
37 throw new java.util.NoSuchElementException ("rect iterator out of bounds");
38 }if (this.index == 5) {
42 if (this.index == 1 || this.index == 2) {
44 }if (this.index == 2 || this.index == 3) {
46 }if (this.affine != null) {
47 this.affine.transform (coords, 0, coords, 0, 1);
48 }return (this.index == 0 ? 0 : 1);
50 Clazz.defineMethod (c$, "currentSegment",
53 throw new java.util.NoSuchElementException ("rect iterator out of bounds");
54 }if (this.index == 5) {
58 if (this.index == 1 || this.index == 2) {
60 }if (this.index == 2 || this.index == 3) {
62 }if (this.affine != null) {
63 this.affine.transform (coords, 0, coords, 0, 1);
64 }return (this.index == 0 ? 0 : 1);