JHotDraw 6.0b1

Class FigureAndEnumerator

  extended by org.jhotdraw.standard.FigureAndEnumerator
All Implemented Interfaces:

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


public FigureAndEnumerator(FigureEnumeration newFE1,
                           FigureEnumeration newFE2)
Method Detail


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


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


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