|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
play.libs.Images.Captcha
public static class Images.Captcha
A captcha image.
| Field Summary | |
|---|---|
play.ns.nl.captcha.backgrounds.BackgroundProducer |
background
|
List<Font> |
fonts
|
play.ns.nl.captcha.gimpy.GimpyRenderer |
gimpy
|
int |
h
|
Color |
noise
|
String |
text
|
Color |
textColor
|
int |
w
|
| Constructor Summary | |
|---|---|
Images.Captcha(int w,
int h)
|
|
| Method Summary | |
|---|---|
Images.Captcha |
addNoise()
Add noise to the captcha. |
Images.Captcha |
addNoise(String color)
Add noise to the captcha. |
String |
getText()
Tell the captche to draw a text and retrieve it |
String |
getText(int length)
Tell the captche to draw a text of the specified size and retrieve it |
String |
getText(int length,
String chars)
|
String |
getText(String color)
Tell the captche to draw a text using the specified color (ex. |
String |
getText(String color,
int length)
Tell the captche to draw a text of the specified size using the specified color (ex. |
String |
getText(String color,
int length,
String chars)
|
int |
read()
|
int |
read(byte[] b)
|
Images.Captcha |
setBackground(String color)
Set a solid background. |
Images.Captcha |
setBackground(String from,
String to)
Set a gradient background. |
Images.Captcha |
setSquigglesBackground()
Set a squiggles background |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String text
public play.ns.nl.captcha.backgrounds.BackgroundProducer background
public play.ns.nl.captcha.gimpy.GimpyRenderer gimpy
public Color textColor
public List<Font> fonts
public int w
public int h
public Color noise
| Constructor Detail |
|---|
public Images.Captcha(int w,
int h)
| Method Detail |
|---|
public String getText()
public String getText(String color)
public String getText(int length)
public String getText(String color,
int length)
public String getText(int length,
String chars)
public String getText(String color,
int length,
String chars)
public Images.Captcha addNoise()
public Images.Captcha addNoise(String color)
public Images.Captcha setBackground(String from,
String to)
public Images.Captcha setBackground(String color)
public Images.Captcha setSquigglesBackground()
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||