Package info.monitorenter.gui.util
Class ColorIterator.HueStepper
- java.lang.Object
-
- info.monitorenter.gui.util.ColorIterator.ADefaultStepping
-
- info.monitorenter.gui.util.ColorIterator.HueStepper
-
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,java.lang.Cloneable
- Enclosing class:
- ColorIterator
public static class ColorIterator.HueStepper extends ColorIterator.ADefaultStepping
A stepper that walks along the hue line of the color space.- Version:
- $Revision: 1.10 $
- Author:
- Achim Westermann
-
-
Field Summary
-
Fields inherited from class info.monitorenter.gui.util.ColorIterator.ADefaultStepping
m_stepping
-
-
Constructor Summary
Constructors Constructor Description HueStepper()
Creates an instance with 100 steps left.HueStepper(int steps)
Creates a stepper with the given step length.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStep(ColorIterator tostep)
Performs a hue step on the given ColorIterator's HSBColor.-
Methods inherited from class info.monitorenter.gui.util.ColorIterator.ADefaultStepping
clone, setSteps
-
-
-
-
Method Detail
-
doStep
public void doStep(ColorIterator tostep)
Performs a hue step on the given ColorIterator's HSBColor.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.
- Parameters:
tostep
- the iterator to perform the step on.
-
-