|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.FigureEnumerator
public final class FigureEnumerator
An Enumeration for a Collection of Figures.
Constructor Summary | |
---|---|
FigureEnumerator(java.util.Collection c)
|
Method Summary | |
---|---|
static FigureEnumeration |
getEmptyEnumeration()
|
boolean |
hasNextFigure()
Returns true if the enumeration contains more elements; false if its empty. |
Figure |
nextFigure()
Returns the next element of the enumeration. |
void |
reset()
Reset the enumeration so it can be reused again. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FigureEnumerator(java.util.Collection c)
Method Detail |
---|
public boolean hasNextFigure()
hasNextFigure
in interface FigureEnumeration
public Figure nextFigure()
nextFigure
in interface FigureEnumeration
java.util.NoSuchElementException
- If no more elements exist.public static FigureEnumeration getEmptyEnumeration()
public void reset()
reset
in interface FigureEnumeration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |