jpicedt.graphic.model
Class AbstractElement.DefaultPointIterator

java.lang.Object
jpicedt.graphic.model.AbstractElement.DefaultPointIterator
- All Implemented Interfaces:
- Element.PointIterator
- Enclosing class:
- AbstractElement
- public class AbstractElement.DefaultPointIterator
- extends java.lang.Object
- implements Element.PointIterator
An iterator over PicPoint's. This implementation simply iterates over control points.
Field Summary |
protected int |
counter
|
Method Summary |
boolean |
hasNext()
Returns true if the iteration has more elements |
int |
next()
Returns the index of the next PicPoint in the iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
counter
protected int counter
AbstractElement.DefaultPointIterator
public AbstractElement.DefaultPointIterator()
- create a new PointIterator
hasNext
public boolean hasNext()
- Returns true if the iteration has more elements
- Specified by:
hasNext
in interface Element.PointIterator
next
public int next()
- Returns the index of the next PicPoint in the iteration.
- Specified by:
next
in interface Element.PointIterator