|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.standard.SingleFigureEnumerator
public final class SingleFigureEnumerator
An Enumeration that contains only a single Figures. An instance of this enumeration can be used only once to retrieve the figure as the figure is forgotten after the first retrieval.
Constructor Summary | |
---|---|
SingleFigureEnumerator(Figure newSingleFigure)
|
Method Summary | |
---|---|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleFigureEnumerator(Figure newSingleFigure)
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 void reset()
reset
in interface FigureEnumeration
|
JHotDraw 6.0b1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |