|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectobjectdraw.DrawableIterator
public class DrawableIterator
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.
| Constructor Summary | |
|---|---|
DrawableIterator(Vector v)
Constructs a new DrawableIterator from a vector of Drawables. |
|
| 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(Vector v)
v - the vector of Drawables| Method Detail |
|---|
public boolean hasNext()
public Drawable next()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||