|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.octo.captcha.component.image.color.RandomRangeColorGenerator
public class RandomRangeColorGenerator
A RandomRangeColorGenerator returns a random color whose components (red, green, blue and alpha) have been picked from user defined ranges.
| Field Summary | |
|---|---|
static int |
MAX_COLOR_COMPONENT_VALUE
Maximal RGB color value |
static int |
MIN_COLOR_COMPONENT_VALUE
Minimal RGB color value |
static int |
OPAQUE_ALPHA_COMPONENT_VALUE
Opaque alpha value |
static int |
TRANSPARENT_ALPHA_COMPONENT_VALUE
Transparent alpha value |
| Constructor Summary | |
|---|---|
RandomRangeColorGenerator(int[] redComponentRange,
int[] greenComponentRange,
int[] blueComponentRange)
Constructs a randomColorGenerator with no alpha |
|
RandomRangeColorGenerator(int[] redComponentRange,
int[] greenComponentRange,
int[] blueComponentRange,
int[] alphaComponentRange)
Constructs a randomRangeColorGenerator with all components |
|
| Method Summary | |
|---|---|
java.awt.Color |
getNextColor()
This return a new color, from a finite set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_COLOR_COMPONENT_VALUE
public static final int MAX_COLOR_COMPONENT_VALUE
public static final int TRANSPARENT_ALPHA_COMPONENT_VALUE
public static final int OPAQUE_ALPHA_COMPONENT_VALUE
| Constructor Detail |
|---|
public RandomRangeColorGenerator(int[] redComponentRange,
int[] greenComponentRange,
int[] blueComponentRange,
int[] alphaComponentRange)
public RandomRangeColorGenerator(int[] redComponentRange,
int[] greenComponentRange,
int[] blueComponentRange)
| Method Detail |
|---|
public java.awt.Color getNextColor()
ColorGenerator
getNextColor in interface ColorGeneratorColorGenerator.getNextColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||