public static class ColorIterator.HueStepper extends ColorIterator.ADefaultStepping
m_stepping
Constructor and Description |
---|
ColorIterator.HueStepper()
Creates an instance with 100 steps left.
|
ColorIterator.HueStepper(int steps)
Creates a stepper with the given step length.
|
Modifier and Type | Method and Description |
---|---|
void |
doStep(ColorIterator tostep)
Performs a hue step on the given ColorIterator's HSBColor.
|
clone, setSteps
public ColorIterator.HueStepper()
public ColorIterator.HueStepper(int steps)
steps
- the amount of steps to take in the hue direction.public void doStep(ColorIterator tostep)
The bounds are watched: if a hue step would cross 1.0 it will be continued beginning from 0. if a hue step would cross the hue value of the ColorIterator's start hue value, the step will only go as far as this value. Else there would be problems with finding the end of the iteration.
tostep
- the iterator to perform the step on.Copyright © 2001 - 2010 LGPL, All Rights Footloose.