All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.FigureEnumerator

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

public final class FigureEnumerator
extends Object
implements FigureEnumeration
An Enumeration for a Vector of Figures.


Constructor Index

 o FigureEnumerator(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 of the enumeration.

Constructors

 o FigureEnumerator
 public FigureEnumerator(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 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