Package info.monitorenter.gui.util
Class ColorIterator.ADefaultStepping
java.lang.Object
info.monitorenter.gui.util.ColorIterator.ADefaultStepping
- All Implemented Interfaces:
ColorIterator.ISteppingModel,Cloneable
- Direct Known Subclasses:
ColorIterator.AlphaStepper,ColorIterator.HueStepper,ColorIterator.LuminanceStepper,ColorIterator.SaturationStepper
- Enclosing class:
- ColorIterator
public abstract static class ColorIterator.ADefaultStepping
extends Object
implements ColorIterator.ISteppingModel
Just for protected internal float stepping.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a stepper with 100 steps in the color space.ADefaultStepping(int steps) Creates a stepper with the given step length. -
Method Summary
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface info.monitorenter.gui.util.ColorIterator.ISteppingModel
doStep
-
Field Details
-
m_stepping
protected double m_steppingThe internal step width.
-
-
Constructor Details
-
ADefaultStepping
public ADefaultStepping()Creates a stepper with 100 steps in the color space. -
ADefaultStepping
public ADefaultStepping(int steps) Creates a stepper with the given step length.- Parameters:
steps- the amount of steps to do in the color space.
-
-
Method Details
-
clone
Too lazy to implement for each subclass. An overhead for newInstance() (return dynamic sub type) is paid here.- Specified by:
clonein interfaceColorIterator.ISteppingModel- Overrides:
clonein classObject- Returns:
- a clone of the stepper.
-
setSteps
public void setSteps(int steps) Description copied from interface:ColorIterator.ISteppingModelSets the amount of steps in the color space.- Specified by:
setStepsin interfaceColorIterator.ISteppingModel- Parameters:
steps- the amount of steps in the color space.- See Also:
-