CH.ifa.draw.standard
Class ReverseFigureEnumerator
- java.lang.Object
-
- CH.ifa.draw.standard.ReverseFigureEnumerator
-
- All Implemented Interfaces:
- FigureEnumeration, java.util.Enumeration
public final class ReverseFigureEnumerator extends java.lang.Object implements FigureEnumeration
An Enumeration that enumerates a vector of figures back (size-1) to front (0).
-
-
Constructor Summary
Constructors Constructor and Description ReverseFigureEnumerator(java.util.Vector v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanhasMoreElements()Returns true if the enumeration contains more elements; false if its empty.java.lang.ObjectnextElement()Returns the next element of the enumeration.FigurenextFigure()Returns the next element casted as a figure of the enumeration.
-
-
-
Method Detail
-
hasMoreElements
public boolean hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty.- Specified by:
hasMoreElementsin interfacejava.util.Enumeration
-
nextElement
public java.lang.Object nextElement()
Returns the next element of the enumeration. Calls to this method will enumerate successive elements.- Specified by:
nextElementin interfacejava.util.Enumeration- Throws:
java.util.NoSuchElementException- If no more elements exist.
-
nextFigure
public Figure nextFigure()
Returns the next element casted as a figure of the enumeration. Calls to this method will enumerate successive elements.- Specified by:
nextFigurein interfaceFigureEnumeration- Throws:
java.util.NoSuchElementException- If no more elements exist.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG