All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.ReverseFigureEnumerator

java.lang.Object
   |
   +----CH.ifa.draw.standard.ReverseFigureEnumerator

public final class ReverseFigureEnumerator
extends Object
implements FigureEnumeration
An Enumeration that enumerates a vector of figures back (size-1) to front (0).


Constructor Index

 o ReverseFigureEnumerator(Vector)

Method Index

 o hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty.
 o nextElement()
Returns the next element of the enumeration.
 o nextFigure()
Returns the next element casted as a figure of the enumeration.

Constructors

 o ReverseFigureEnumerator
 public ReverseFigureEnumerator(Vector v)

Methods

 o hasMoreElements
 public boolean hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty.

 o nextElement
 public Object nextElement()
Returns the next element of the enumeration. Calls to this method will enumerate successive elements.

Throws: NoSuchElementException
If no more elements exist.
 o nextFigure
 public Figure nextFigure()
Returns the next element casted as a figure of the enumeration. Calls to this method will enumerate successive elements.

Throws: NoSuchElementException
If no more elements exist.

All Packages  Class Hierarchy  This Package  Previous  Next  Index