|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.captcha.Captcha.Builder
public static class Captcha.Builder
| Constructor Summary | |
|---|---|
Captcha.Builder(int width,
int height)
|
|
| Method Summary | |
|---|---|
Captcha.Builder |
addBackground()
Add a background using the default BackgroundProducer (a TransparentBackgroundProducer). |
Captcha.Builder |
addBackground(BackgroundProducer bgProd)
Add a background using the given BackgroundProducer. |
Captcha.Builder |
addBorder()
Draw a single-pixel wide black border around the image. |
Captcha.Builder |
addNoise()
Add noise using the default NoiseProducer (a CurvedLineNoiseProducer). |
Captcha.Builder |
addNoise(NoiseProducer nProd)
Add noise using the given NoiseProducer. |
Captcha.Builder |
addText()
Generate the answer to the CAPTCHA using the DefaultTextProducer. |
Captcha.Builder |
addText(TextProducer txtProd)
Generate the answer to the CAPTCHA using the given TextProducer. |
Captcha.Builder |
addText(TextProducer txtProd,
WordRenderer wRenderer)
Generate the answer to the CAPTCHA using the given TextProducer, and render it to the image using the given
WordRenderer. |
Captcha.Builder |
addText(WordRenderer wRenderer)
Generate the answer to the CAPTCHA using the default TextProducer, and render it to the image using the given
WordRenderer. |
Captcha |
build()
Build the CAPTCHA. |
Captcha.Builder |
gimp()
Gimp the image using the default GimpyRenderer (a RippleGimpyRenderer). |
Captcha.Builder |
gimp(GimpyRenderer gimpy)
Gimp the image using the given GimpyRenderer. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Captcha.Builder(int width,
int height)
| Method Detail |
|---|
public Captcha.Builder addBackground()
BackgroundProducer (a TransparentBackgroundProducer).
public Captcha.Builder addBackground(BackgroundProducer bgProd)
BackgroundProducer.
bgProd - public Captcha.Builder addText()
DefaultTextProducer.
public Captcha.Builder addText(TextProducer txtProd)
TextProducer.
txtProd - public Captcha.Builder addText(WordRenderer wRenderer)
TextProducer, and render it to the image using the given
WordRenderer.
wRenderer -
public Captcha.Builder addText(TextProducer txtProd,
WordRenderer wRenderer)
TextProducer, and render it to the image using the given
WordRenderer.
txtProd - wRenderer - public Captcha.Builder addNoise()
NoiseProducer (a CurvedLineNoiseProducer).
public Captcha.Builder addNoise(NoiseProducer nProd)
nProd - public Captcha.Builder gimp()
GimpyRenderer (a RippleGimpyRenderer).
public Captcha.Builder gimp(GimpyRenderer gimpy)
GimpyRenderer.
gimpy - public Captcha.Builder addBorder()
public Captcha build()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||