home *** CD-ROM | disk | FTP | other *** search
- package java.awt;
-
- import java.awt.geom.AffineTransform;
- import java.awt.geom.PathIterator;
-
- class Polygon$PolygonPathIterator implements PathIterator {
- Polygon poly;
- AffineTransform transform;
- int index;
- // $FF: synthetic field
- private final Polygon this$0;
-
- public Polygon$PolygonPathIterator(Polygon var1, Polygon var2, AffineTransform var3) {
- this.this$0 = var1;
- this.poly = var2;
- this.transform = var3;
- }
-
- public int getWindingRule() {
- return 0;
- }
-
- public boolean isDone() {
- return this.index > this.poly.npoints;
- }
-
- public void next() {
- ++this.index;
- }
-
- public int currentSegment(float[] var1) {
- if (this.index >= this.poly.npoints) {
- return 4;
- } else {
- var1[0] = (float)this.poly.xpoints[this.index];
- var1[1] = (float)this.poly.ypoints[this.index];
- if (this.transform != null) {
- this.transform.transform(var1, 0, var1, 0, 1);
- }
-
- return this.index == 0 ? 0 : 1;
- }
- }
-
- public int currentSegment(double[] var1) {
- if (this.index >= this.poly.npoints) {
- return 4;
- } else {
- var1[0] = (double)this.poly.xpoints[this.index];
- var1[1] = (double)this.poly.ypoints[this.index];
- if (this.transform != null) {
- this.transform.transform(var1, 0, var1, 0, 1);
- }
-
- return this.index == 0 ? 0 : 1;
- }
- }
- }
-