|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.ReverseFigureEnumerator
public final class ReverseFigureEnumerator
An Enumeration that enumerates a vector of figures back (size-1) to front (0).
Constructor Summary | |
---|---|
ReverseFigureEnumerator(java.util.Vector v)
|
Method Summary | |
---|---|
boolean |
hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty. |
java.lang.Object |
nextElement()
Returns the next element of the enumeration. |
Figure |
nextFigure()
Returns the next element casted as a figure of the enumeration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReverseFigureEnumerator(java.util.Vector v)
Method Detail |
---|
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
java.util.NoSuchElementException
- If no more elements exist.public Figure nextFigure()
nextFigure
in interface FigureEnumeration
java.util.NoSuchElementException
- If no more elements exist.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |