objectdraw
Class DrawableIterator

java.lang.Object
  extended byobjectdraw.DrawableIterator

public class DrawableIterator
extends java.lang.Object

An object of type DrawableIterator can be obtained by invoking the getDrawableIterator method of a DrawaingCanvas and then used to write loops that sequentially process all the Drawable objects displayed on the associated canvas.

Version:
1.1.2 released July 2006

Method Summary
 boolean hasNext()
          Tells whether the iterator has any more elements to return
 objectdraw.Drawable next()
          Gives the next Drawable in the Vector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Tells whether the iterator has any more elements to return

Returns:
whether the iterator has more elements

next

public objectdraw.Drawable next()
Gives the next Drawable in the Vector

Returns:
the next Drawable