Package jpicedt.graphic.model
Class PicGroup.GroupPointIterator
- java.lang.Object
-
- jpicedt.graphic.model.PicGroup.GroupPointIterator
-
- All Implemented Interfaces:
PointIndexIterator
- Enclosing class:
- PicGroup
public class PicGroup.GroupPointIterator extends java.lang.Object implements PointIndexIterator
An iterator over PicPoint's that can serve as anchors for grid alignment. This implementation iterates over the 4 control points : UL, UR, LL and LR.
-
-
Field Summary
Fields Modifier and Type Field Description protected intcounter
-
Constructor Summary
Constructors Constructor Description GroupPointIterator()create a new PointIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()intnext()voidreset()reset the state of this iterator
-
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:PointIndexIteratorreset the state of this iterator- Specified by:
resetin interfacePointIndexIterator
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacePointIndexIterator- Returns:
- true if the iteration has more elements
-
next
public int next()
- Specified by:
nextin interfacePointIndexIterator- Returns:
- the next PicPoint in the iteration ; this doesn't create a new PicPoint, hence the returned value might change over time.
-
-