Class DefaultPointIndexIterator

  • All Implemented Interfaces:
    PointIndexIterator

    public class DefaultPointIndexIterator
    extends java.lang.Object
    implements PointIndexIterator
    Default implementation of the PointIndexIterator interface, which simply iterates in ascending order over all control points.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int counter  
      protected Element elem  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      Returns true if the iteration has more elements
      int next()
      Returns the index of the next PicPoint in the iteration.
      void reset()
      reset the state of this iterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • counter

        protected int counter
    • Constructor Detail

      • DefaultPointIndexIterator

        public DefaultPointIndexIterator​(Element e)
        create a new PointIndexIterator for the given Element
    • Method Detail

      • hasNext

        public boolean hasNext()
        Returns true if the iteration has more elements
        Specified by:
        hasNext in interface PointIndexIterator
        Returns:
        true if the iterator has more elements
      • next

        public int next()
        Returns the index of the next PicPoint in the iteration.
        Specified by:
        next in interface PointIndexIterator
        Returns:
        the index of the next user-controlled point in the iteration