info.monitorenter.gui.util
Class ColorIterator.ADefaultStepping

java.lang.Object
  extended by 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
protected  double m_stepping
          The internal step width.
 
Constructor Summary
ColorIterator.ADefaultStepping()
          Creates a stepper with 100 steps in the color space.
ColorIterator.ADefaultStepping(int steps)
          Creates a stepper with the given step length.
 
Method Summary
 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
 

Field Detail

m_stepping

protected double m_stepping
The internal step width.

Constructor Detail

ColorIterator.ADefaultStepping

public ColorIterator.ADefaultStepping()
Creates a stepper with 100 steps in the color space.


ColorIterator.ADefaultStepping

public ColorIterator.ADefaultStepping(int steps)
Creates a stepper with the given step length.

Parameters:
steps - the amount of steps to do in the color space.
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 interface ColorIterator.ISteppingModel
Overrides:
clone in class java.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 interface ColorIterator.ISteppingModel
Parameters:
steps - the amount of steps in the color space.
See Also:
ColorIterator.ISteppingModel.setSteps(int)


Copyright © 2001 - 2010 LGPL, All Rights Footloose.