Interface Pixellator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Rectangle getBounds()
      Returns a copy of the bounding rectangle for this pixellator.
      int getX()
      Returns the X value for the current point.
      int getY()
      Returns the Y value for the current point.
      boolean next()
      Moves to the next point in the sequence.
      void start()
      Makes this object ready to iterate.
    • Method Detail

      • getBounds

        java.awt.Rectangle getBounds()
        Returns a copy of the bounding rectangle for this pixellator. All points iterated over by this object will fall within this rectangle. If this object has no points, null may be returned.
        Returns:
        bounds
      • start

        void start()
        Makes this object ready to iterate. Should be called before any call to next().
      • next

        boolean next()
        Moves to the next point in the sequence. Must be called before any call to getX()/getY(). Returns value indicates whether there is a next point.
        Returns:
        next true iff there are more points
      • getX

        int getX()
        Returns the X value for the current point.
        Returns:
        x
      • getY

        int getY()
        Returns the Y value for the current point.
        Returns:
        y