@Override public int currentSegment (float[] coords) { if (isDone()) { throw new NoSuchElementException("Iterator out of bounds"); } int type; int count; if (index == 0) { type = SEG_MOVETO; coords[0] = c.x1(); coords[1] = c.y1(); count = 1; } else { type = SEG_CUBICTO; coords[0] = c.ctrlX1(); coords[1] = c.ctrlY1(); coords[2] = c.ctrlX2(); coords[3] = c.ctrlY2(); coords[4] = c.x2(); coords[5] = c.y2(); count = 3; } if (t != null) { t.transform(coords, 0, coords, 0, count); } return type; } }
@Override public int currentSegment (float[] coords) { if (isDone()) { throw new NoSuchElementException("Iterator out of bounds"); } int type; int count; if (index == 0) { type = SEG_MOVETO; coords[0] = c.x1(); coords[1] = c.y1(); count = 1; } else { type = SEG_CUBICTO; coords[0] = c.ctrlX1(); coords[1] = c.ctrlY1(); coords[2] = c.ctrlX2(); coords[3] = c.ctrlY2(); coords[4] = c.x2(); coords[5] = c.y2(); count = 3; } if (t != null) { t.transform(coords, 0, coords, 0, count); } return type; } }
@Override // from interface IShape public PathIterator pathIterator (Transform t) { return new Iterator(this, t); }
@Override // from interface IShape public PathIterator pathIterator (Transform t) { return new Iterator(this, t); }