Package info.monitorenter.gui.util
Class ColorIterator.SaturationStepper
java.lang.Object
info.monitorenter.gui.util.ColorIterator.ADefaultStepping
info.monitorenter.gui.util.ColorIterator.SaturationStepper
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,Cloneable
- Enclosing class:
- ColorIterator
A stepping model that steps on the saturation 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
ConstructorsConstructorDescriptionCreates an instance with 100 saturation steps.SaturationStepper
(int steps) Creates an instance with the given stepping to go on the saturation line of the color space. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doStep
(ColorIterator tostep) Performs a saturation step on the given ColorIterator's HSBColor.Methods inherited from class info.monitorenter.gui.util.ColorIterator.ADefaultStepping
clone, setSteps
-
Constructor Details
-
SaturationStepper
public SaturationStepper()Creates an instance with 100 saturation steps. -
SaturationStepper
public SaturationStepper(int steps) Creates an instance with the given stepping to go on the saturation line of the color space.- Parameters:
steps
- the amount of steps to take on the saturation line.
-
-
Method Details
-
doStep
Performs a saturation 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 saturation value of the ColorIterator's start saturation, 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.
-