ColorIterator.ISteppingModel, java.lang.Cloneablepublic static class ColorIterator.AlphaStepper extends ColorIterator.ADefaultStepping
m_stepping| Constructor | Description |
|---|---|
AlphaStepper() |
Creates an instance with 100 alpha steps.
|
AlphaStepper(int steps) |
Creates an instance with the given stepping to go on the alpha channel of
the color space.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
doStep(ColorIterator tostep) |
Performs a alpha step on the given ColorIterator's HSBColor.
|
void |
setSteps(int steps) |
Sets the amount of steps in the color space.
|
clonepublic AlphaStepper()
public AlphaStepper(int steps)
steps - the amount of steps to take on the saturation line.public void doStep(ColorIterator tostep)
The bounds are watched: if a step would cross 255, it will be continued beginning from 0. if a step would cross the alpha value of the ColorIterator's start alpha, the step will only go as far as this value. Else there would be problems with finding the end of the iteration.
tostep - the color iterator to perform the step on.public void setSteps(int steps)
ColorIterator.ISteppingModelsetSteps in interface ColorIterator.ISteppingModelsetSteps in class ColorIterator.ADefaultSteppingsteps - the amount of steps in the color space.ColorIterator.ADefaultStepping.setSteps(int)Copyright © 2001 - 2010 LGPL, All Rights Footloose.