|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.monitorenter.gui.util.ColorIterator
public class ColorIterator
Iterator of ther color space.
Nested Class Summary | |
---|---|
static class |
ColorIterator.ADefaultStepping
Just for protected internal float stepping. |
static class |
ColorIterator.APiggyBackStepper
Base class for stepping models that may step in each direction of the Hue Saturation Luminance color space. |
static class |
ColorIterator.HSBStepper
Performs hue steps until it has walked the whole hue line, then performs a saturation step to start with hue steps again. |
static class |
ColorIterator.HSStepper
Performs hue steps until it has walked the whole hue line, then performs a saturation step to start with hue steps again. |
static class |
ColorIterator.HueStepper
A stepper that walks along the hue line of the color space. |
static interface |
ColorIterator.ISteppingModel
Defines the strategy of walking through the HSB color space. |
static class |
ColorIterator.LuminanceStepper
A stepping model that steps on the luminance line of the HSB color space. |
static class |
ColorIterator.SaturationStepper
A stepping model that steps on the saturation line of the HSB color space. |
Constructor Summary | |
---|---|
ColorIterator()
Creates an instance that starts with a red and walks the hue line with a ColorIterator.HueStepper . |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if more colors are available. |
static void |
main(String[] args)
Main entry for a test application. |
Object |
next()
Returns instances of java.awt.Color or throws a NoSuchElementException, if iterator has finished. |
void |
remove()
Nothing is done here. |
void |
reset()
Resets the ColorIterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorIterator()
ColorIterator.HueStepper
.
Method Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
- if hasNext()
returns false.public void reset()
public void remove()
remove
in interface Iterator
public static void main(String[] args)
args
- ignored.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |