info.monitorenter.gui.util
Class ColorIterator.ADefaultStepping

java.lang.Object
  extended by info.monitorenter.gui.util.ColorIterator.ADefaultStepping
All Implemented Interfaces:
ColorIterator.ISteppingModel, Cloneable
Direct Known Subclasses:
ColorIterator.APiggyBackStepper, 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
protected  float m_stepping
          The amount of stepping.
 
Constructor Summary
ColorIterator.ADefaultStepping()
          Creates a stepper with 100 steps in the color space.
ColorIterator.ADefaultStepping(float stepping)
          Creates a stepper with the given step length.
 
Method Summary
 Object clone()
          Too lazy to implement for each subclass.
 
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 float m_stepping
The amount of stepping.

Constructor Detail

ColorIterator.ADefaultStepping

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


ColorIterator.ADefaultStepping

public ColorIterator.ADefaultStepping(float stepping)
                               throws IllegalArgumentException
Creates a stepper with the given step length.

Parameters:
stepping - a step length in-between 0.0 and 1.0.
Throws:
IllegalArgumentException - if the stepping is <= 0.0 or >=1.0.
Method Detail

clone

public Object clone()
Too lazy to implement for each subclass. An overhead for newInstance() (return dynamic subtype) is paid here.

Specified by:
clone in interface ColorIterator.ISteppingModel
Overrides:
clone in class Object
Returns:
a clone of the stepper.


Copyright © 2001 - 2007 LGPL, All Rights Footloose.