jeroen.ui
Class ColorIterator

java.lang.Object
  |
  +--jeroen.util.AbstractIterator
        |
        +--jeroen.ui.ColorIterator
All Implemented Interfaces:
Iterator

public class ColorIterator
extends AbstractIterator

Een eindeloze kleureniterator die steeds een nieuwe kleur geeft. Als de kleuren opzijn, begint hij weer opnieuw.


Constructor Summary
ColorIterator()
           
 
Method Summary
 boolean hasNext()
          Of er nog kleuren zijn.
 Object next()
          Geeft de volgende kleur.
 
Methods inherited from class jeroen.util.AbstractIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorIterator

public ColorIterator()
Method Detail

hasNext

public boolean hasNext()
Of er nog kleuren zijn.
Overrides:
hasNext in class AbstractIterator
Returns:
true

next

public Object next()
Geeft de volgende kleur.
Overrides:
next in class AbstractIterator
Following copied from class: jeroen.util.AbstractIterator
Returns:
the next element in the iteration.
Throws:
NoSuchElementException - iteration has no more elements.