objectdraw
Class DrawableIterator

java.lang.Object
  |
  +--objectdraw.DrawableIterator

public class DrawableIterator
extends java.lang.Object

DrawableIterator takes a Vector of Drawable's and creates an iterator over it. It is used in CanvasManager to return the contents of the Vector of objects without making the Vector available for alteration.


Constructor Summary
DrawableIterator(java.util.Vector v)
          Constructs a new DrawableIterator
 
Method Summary
 boolean hasNext()
          Tells whether the iterator has any more elements to return
 Drawable next()
          Gives the next Drawable in the Vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawableIterator

public DrawableIterator(java.util.Vector v)
Constructs a new DrawableIterator
Parameters:
v - the vector of Drawables
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 Drawable next()
Gives the next Drawable in the Vector
Returns:
the next Drawable