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 doublem_steppingThe 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.Objectclone()Too lazy to implement for each subclass.voidsetSteps(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:
clonein interfaceColorIterator.ISteppingModel- Overrides:
clonein classjava.lang.Object- 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:
ColorIterator.ISteppingModel.setSteps(int)
-
-