Package info.monitorenter.gui.util
Class ColorIterator.APiggyBackStepper
- java.lang.Object
-
- info.monitorenter.gui.util.ColorIterator.APiggyBackStepper
-
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,java.lang.Cloneable
- Direct Known Subclasses:
ColorIterator.HSBStepper
,ColorIterator.HSStepper
- Enclosing class:
- ColorIterator
public abstract static class ColorIterator.APiggyBackStepper extends java.lang.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
Fields Modifier and Type Field Description protected ColorIterator.HueStepper
m_huestep
The hue stepper to use.protected ColorIterator.LuminanceStepper
m_lumstep
The luminance stepper to use.protected ColorIterator.SaturationStepper
m_satstep
The saturation stepper to use.
-
Constructor Summary
Constructors Constructor Description APiggyBackStepper()
Creates 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Creates a clone of this stepper.void
setSteps(int steps)
Sets the amount of steps in the color space.-
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 Detail
-
m_huestep
protected ColorIterator.HueStepper m_huestep
The hue stepper to use.
-
m_lumstep
protected ColorIterator.LuminanceStepper m_lumstep
The luminance stepper to use.
-
m_satstep
protected ColorIterator.SaturationStepper m_satstep
The saturation stepper to use.
-
-
Constructor Detail
-
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 Detail
-
clone
public java.lang.Object clone()
Description copied from interface:ColorIterator.ISteppingModel
Creates a clone of this stepper.- Specified by:
clone
in interfaceColorIterator.ISteppingModel
- Overrides:
clone
in classjava.lang.Object
- Returns:
- a clone of this stepper.
- See Also:
Object.clone()
-
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:
ColorIterator.ISteppingModel.setSteps(int)
-
-