Package info.monitorenter.gui.util
Class ColorIterator.APiggyBackStepper
java.lang.Object
info.monitorenter.gui.util.ColorIterator.APiggyBackStepper
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,Cloneable
- Direct Known Subclasses:
ColorIterator.HSBStepper
,ColorIterator.HSStepper
- Enclosing class:
ColorIterator
public abstract static class ColorIterator.APiggyBackStepper
extends Object
implements ColorIterator.ISteppingModel
Base class for stepping models that may step in each direction of the Hue
Saturation Luminance color space.
- Version:
- $Revision: 1.10 $
- Author:
- Achim Westermann
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ColorIterator.HueStepper
The hue stepper to use.protected ColorIterator.LuminanceStepper
The luminance stepper to use.protected ColorIterator.SaturationStepper
The saturation stepper to use. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance with an amount of steps of 100 for hue, saturation and luminance.APiggyBackStepper
(int hueSteps, int satSteps, int lumSteps) Creates an instance that uses the given amount of steps for hue, luminance and saturation. -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface info.monitorenter.gui.util.ColorIterator.ISteppingModel
doStep
-
Field Details
-
m_huestep
The hue stepper to use. -
m_lumstep
The luminance stepper to use. -
m_satstep
The saturation stepper to use.
-
-
Constructor Details
-
APiggyBackStepper
public APiggyBackStepper()Creates an instance with an amount of steps of 100 for hue, saturation and luminance. -
APiggyBackStepper
public APiggyBackStepper(int hueSteps, int satSteps, int lumSteps) Creates an instance that uses the given amount of steps for hue, luminance and saturation.- Parameters:
hueSteps
- the amount of steps on the hue line of the HSB color space.satSteps
- the amount of steps on the saturation line of the HSB color space.lumSteps
- the amount of steps on the luminance line of the HSB color space.
-
-
Method Details
-
clone
Description copied from interface:ColorIterator.ISteppingModel
Creates a clone of this stepper.- Specified by:
clone
in interfaceColorIterator.ISteppingModel
- Overrides:
clone
in classObject
- Returns:
- a clone of this stepper.
- See Also:
-
setSteps
public void setSteps(int steps) Description copied from interface:ColorIterator.ISteppingModel
Sets the amount of steps in the color space.- Specified by:
setSteps
in interfaceColorIterator.ISteppingModel
- Parameters:
steps
- the amount of steps in the color space.- See Also:
-