info.monitorenter.gui.util
Class ColorIterator.APiggyBackStepper

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

public abstract static class ColorIterator.APiggyBackStepper
extends java.lang.Object
implements ColorIterator.ISteppingModel

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

Version:
$Revision: 1.10 $
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.
 
Constructor Summary
ColorIterator.APiggyBackStepper()
          Creates an instance with an amount of steps of 100 for hue, saturation and luminance.
ColorIterator.APiggyBackStepper(int hueSteps, int satSteps, int lumSteps)
          Creates an instance that uses the given amount of steps for hue, luminance and saturation.
 
Method Summary
 java.lang.Object clone()
          Creates a clone of this stepper.
 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_huestep

protected ColorIterator.HueStepper m_huestep
The hue stepper to use.


m_lumstep

protected ColorIterator.LuminanceStepper m_lumstep
The luminance stepper to use.


m_satstep

protected ColorIterator.SaturationStepper m_satstep
The saturation stepper to use.

Constructor Detail

ColorIterator.APiggyBackStepper

public ColorIterator.APiggyBackStepper()
Creates an instance with an amount of steps of 100 for hue, saturation and luminance.


ColorIterator.APiggyBackStepper

public ColorIterator.APiggyBackStepper(int hueSteps,
                                       int satSteps,
                                       int lumSteps)
Creates an instance that uses the given amount of steps for hue, luminance and saturation.

Parameters:
hueSteps - the amount of steps on the hue line of the HSB color space.
satSteps - the amount of steps on the saturation line of the HSB color space.
lumSteps - the amount of steps on the luminance line of the HSB color space.
Method Detail

clone

public java.lang.Object clone()
Description copied from interface: ColorIterator.ISteppingModel
Creates a clone of this stepper.

Specified by:
clone in interface ColorIterator.ISteppingModel
Overrides:
clone in class java.lang.Object
Returns:
a clone of this stepper.
See Also:
Object.clone()

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.