|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fi.utu.cs.appearance.ShapeIterator
An iterator over an array of shapable objects. The objects are rendered in the order of the array (i.e., the first object is rendered first and the rest will be rendered over it).
Shapable
Constructor Summary | |
ShapeIterator(Shapable[] s)
Constructs an iterator for the shapable objects. |
Method Summary | |
boolean |
hasNext()
Returns true if the iteration has more elements. |
Shapable |
next()
Returns the next shapable object in the iteration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeIterator(Shapable[] s)
s
.
Method Detail |
public boolean hasNext()
true
if the iteration has more elements.
public Shapable next() throws java.util.NoSuchElementException
java.util.NoSuchElementException
- Iteration has no more elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |