path
Interface EdgeIterator


public interface EdgeIterator

An EdgeIterator is an object which iterates over edges in a PolygonalPath. We have based the interface on java.util.Iterator.

See Also:
Java's Iterator interface, The PathIterator interface, which extends EdgeIterator

Method Summary
 boolean hasNext()
          Return true when the iterator will return another edge with a call to next().
 LineSegment next()
          Return the next segment.
 

Method Detail

hasNext

boolean hasNext()
Return true when the iterator will return another edge with a call to next(). Returns false otherwise.


next

LineSegment next()
Return the next segment.



Java Tutorial for Mathematics Students