info.monitorenter.gui.util
Class ColorIterator.APiggyBackStepper

java.lang.Object
  extended by info.monitorenter.gui.util.ColorIterator.ADefaultStepping
      extended by info.monitorenter.gui.util.ColorIterator.APiggyBackStepper
All Implemented Interfaces:
ColorIterator.ISteppingModel, Cloneable
Direct Known Subclasses:
ColorIterator.HSBStepper, ColorIterator.HSStepper
Enclosing class:
ColorIterator

public abstract static class ColorIterator.APiggyBackStepper
extends ColorIterator.ADefaultStepping

Base class for stepping models that may step in each direction of the Hue Saturation Luminance color space.

Version:
$Revision: 1.3 $
Author:
Achim Westermann

Field Summary
protected  ColorIterator.HueStepper m_huestep
          The hue stepper to use.
protected  ColorIterator.LuminanceStepper m_lumstep
          The luminance stepper to use.
protected  ColorIterator.SaturationStepper m_satstep
          The saturation stepper to use.
 
Fields inherited from class info.monitorenter.gui.util.ColorIterator.ADefaultStepping
m_stepping
 
Constructor Summary
ColorIterator.APiggyBackStepper()
          Defcon.
ColorIterator.APiggyBackStepper(float hueStepping, float satStepping, float lumStepping)
          Creates an instance that uses the given step lengths for hue, luminance and saturation.
 
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_huestep

protected ColorIterator.HueStepper m_huestep
The hue stepper to use.


m_satstep

protected ColorIterator.SaturationStepper m_satstep
The saturation stepper to use.


m_lumstep

protected ColorIterator.LuminanceStepper m_lumstep
The luminance stepper to use.

Constructor Detail

ColorIterator.APiggyBackStepper

public ColorIterator.APiggyBackStepper()
Defcon.


ColorIterator.APiggyBackStepper

public ColorIterator.APiggyBackStepper(float hueStepping,
                                       float satStepping,
                                       float lumStepping)
                                throws IllegalArgumentException
Creates an instance that uses the given step lengths for hue, luminance and saturation.

Parameters:
hueStepping - the step length on the hue line of the HSB color space.
satStepping - the step length on the saturation line of the HSB color space.
lumStepping - the step length on the luminance line of the HSB color space.
Throws:
IllegalArgumentException - if any of the arguments is <= 0.0 or >= 1.0.
Method Detail

clone

public Object clone()
Description copied from class: ColorIterator.ADefaultStepping
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 ColorIterator.ADefaultStepping
Returns:
a clone of the stepper.
See Also:
Object.clone()


Copyright © 2001 - 2007 LGPL, All Rights Footloose.