Package info.monitorenter.gui.util
Class ColorIterator.ADefaultStepping
- java.lang.Object
-
- info.monitorenter.gui.util.ColorIterator.ADefaultStepping
-
- All Implemented Interfaces:
ColorIterator.ISteppingModel
,java.lang.Cloneable
- Direct Known Subclasses:
ColorIterator.AlphaStepper
,ColorIterator.HueStepper
,ColorIterator.LuminanceStepper
,ColorIterator.SaturationStepper
- Enclosing class:
- ColorIterator
public abstract static class ColorIterator.ADefaultStepping extends java.lang.Object implements ColorIterator.ISteppingModel
Just for protected internal float stepping.
-
-
Field Summary
Fields Modifier and Type Field Description protected double
m_stepping
The internal step width.
-
Constructor Summary
Constructors Constructor Description ADefaultStepping()
Creates a stepper with 100 steps in the color space.ADefaultStepping(int steps)
Creates a stepper with the given step length.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Too lazy to implement for each subclass.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
-
-
-
-
Method Detail
-
clone
public java.lang.Object clone()
Too lazy to implement for each subclass. An overhead for newInstance() (return dynamic sub type) is paid here.- Specified by:
clone
in interfaceColorIterator.ISteppingModel
- Overrides:
clone
in classjava.lang.Object
- Returns:
- a clone of the stepper.
-
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)
-
-