JHotDraw 6.0b1

org.jhotdraw.standard
Class FigureAndEnumerator

java.lang.Object
  extended by org.jhotdraw.standard.FigureAndEnumerator
All Implemented Interfaces:
FigureEnumeration

public class FigureAndEnumerator
extends java.lang.Object
implements FigureEnumeration


Constructor Summary
FigureAndEnumerator(FigureEnumeration newFE1, FigureEnumeration newFE2)
           
 
Method Summary
 boolean hasNextFigure()
           
 Figure nextFigure()
          Returns the next element of the enumeration.
 void reset()
          Reset the enumeration so it can be reused again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FigureAndEnumerator

public FigureAndEnumerator(FigureEnumeration newFE1,
                           FigureEnumeration newFE2)
Method Detail

nextFigure

public Figure nextFigure()
Description copied from interface: FigureEnumeration
Returns the next element of the enumeration. Calls to this method will enumerate successive elements.

Specified by:
nextFigure in interface FigureEnumeration

hasNextFigure

public boolean hasNextFigure()
Specified by:
hasNextFigure in interface FigureEnumeration

reset

public void reset()
Reset the enumeration so it can be reused again. However, the underlying collection might have changed since the last usage so the elements and the order may vary when using an enumeration which has been reset.

Specified by:
reset in interface FigureEnumeration

JHotDraw 6.0b1