Package info.monitorenter.gui.util
Class ColorIterator.LuminanceStepper
- java.lang.Object
-
- info.monitorenter.gui.util.ColorIterator.ADefaultStepping
-
- info.monitorenter.gui.util.ColorIterator.LuminanceStepper
-
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,java.lang.Cloneable
- Enclosing class:
- ColorIterator
public static class ColorIterator.LuminanceStepper extends ColorIterator.ADefaultStepping
A stepping model that steps on the luminance line of the HSB 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 LuminanceStepper()
Creates an instance with 100 luminance steps.LuminanceStepper(int steps)
Creates an instance with the given stepping to go on the luminance line of the color space.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doStep(ColorIterator tostep)
Performs a luminance step on the given ColorIterator's HSBColor.-
Methods inherited from class info.monitorenter.gui.util.ColorIterator.ADefaultStepping
clone, setSteps
-
-
-
-
Constructor Detail
-
LuminanceStepper
public LuminanceStepper()
Creates an instance with 100 luminance steps.
-
LuminanceStepper
public LuminanceStepper(int steps)
Creates an instance with the given stepping to go on the luminance line of the color space.- Parameters:
steps
- the amount of steps to take in the luminance space.
-
-
Method Detail
-
doStep
public void doStep(ColorIterator tostep)
Performs a luminance step on the given ColorIterator's HSBColor.The bounds are watched: if a step would cross 1.0, it will be continued beginning from 0. if a step would cross the luminance value of the ColorIterator's start luminance, 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 color iterator to perform the step on.
-
-