CH.ifa.draw.framework
Interface FigureEnumeration

All Superinterfaces:
java.util.Enumeration
All Known Implementing Classes:
FigureEnumerator, ReverseFigureEnumerator

public interface FigureEnumeration
extends java.util.Enumeration

Interface for Enumerations that access Figures. It provides a method nextFigure, that hides the down casting from client code.


Method Summary
 Figure nextFigure()
          Returns the next element of the enumeration.
 
Methods inherited from interface java.util.Enumeration
hasMoreElements, nextElement
 

Method Detail

nextFigure

Figure nextFigure()
Returns the next element of the enumeration. Calls to this method will enumerate successive elements.

Throws:
java.util.NoSuchElementException - If no more elements exist.