com.rolemodelsoft.drawlet.basics
Class FigureVectorEnumerator

java.lang.Object
  |
  +--com.rolemodelsoft.drawlet.basics.FigureVectorEnumerator

public class FigureVectorEnumerator
extends java.lang.Object
implements FigureEnumeration


Constructor Summary
FigureVectorEnumerator(java.util.Vector v)
          Create a FigureEnumeration over the Vector of Figures
 
Method Summary
 boolean hasMoreElements()
          Tests if this enumeration contains more figures.
 Figure nextElement()
          Returns the next figure of this enumeration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigureVectorEnumerator

public FigureVectorEnumerator(java.util.Vector v)
Create a FigureEnumeration over the Vector of Figures
Parameters:
v - the vector
Method Detail

hasMoreElements

public boolean hasMoreElements()
Tests if this enumeration contains more figures.
Specified by:
hasMoreElements in interface FigureEnumeration
Returns:
boolean value of true if this enumeration contains more figures; false otherwise.

nextElement

public Figure nextElement()
Returns the next figure of this enumeration.
Specified by:
nextElement in interface FigureEnumeration
Returns:
the next Figure of this enumeration.
Throws:
java.util.NoSuchElementException - if no more elements exist.