Class 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 int counter  
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupPointIterator()
      create a new PointIterator
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      int next()  
      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

      • GroupPointIterator

        public GroupPointIterator()
        create a new PointIterator
    • Method Detail

      • hasNext

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

        public int next()
        Specified by:
        next in interface PointIndexIterator
        Returns:
        the next PicPoint in the iteration ; this doesn't create a new PicPoint, hence the returned value might change over time.