|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream play.libs.Images.Captcha
public static class Images.Captcha
A captcha image.
Field Summary | |
---|---|
jj.play.ns.nl.captcha.backgrounds.BackgroundProducer |
background
|
java.util.List<java.awt.Font> |
fonts
|
jj.play.ns.nl.captcha.gimpy.GimpyRenderer |
gimpy
|
int |
h
|
java.awt.Color |
noise
|
java.lang.String |
text
|
java.awt.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(java.lang.String color)
Add noise to the captcha. |
java.lang.String |
getText()
Tell the captche to draw a text and retrieve it |
java.lang.String |
getText(int length)
Tell the captche to draw a text of the specified size and retrieve it |
java.lang.String |
getText(int length,
java.lang.String chars)
|
java.lang.String |
getText(java.lang.String color)
Tell the captche to draw a text using the specified color (ex. |
java.lang.String |
getText(java.lang.String color,
int length)
Tell the captche to draw a text of the specified size using the specified color (ex. |
java.lang.String |
getText(java.lang.String color,
int length,
java.lang.String chars)
|
int |
read()
|
int |
read(byte[] b)
|
Images.Captcha |
setBackground(java.lang.String color)
Set a solid background. |
Images.Captcha |
setBackground(java.lang.String from,
java.lang.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 java.lang.String text
public jj.play.ns.nl.captcha.backgrounds.BackgroundProducer background
public jj.play.ns.nl.captcha.gimpy.GimpyRenderer gimpy
public java.awt.Color textColor
public java.util.List<java.awt.Font> fonts
public int w
public int h
public java.awt.Color noise
Constructor Detail |
---|
public Images.Captcha(int w, int h)
Method Detail |
---|
public java.lang.String getText()
public java.lang.String getText(java.lang.String color)
public java.lang.String getText(int length)
public java.lang.String getText(java.lang.String color, int length)
public java.lang.String getText(int length, java.lang.String chars)
public java.lang.String getText(java.lang.String color, int length, java.lang.String chars)
public Images.Captcha addNoise()
public Images.Captcha addNoise(java.lang.String color)
public Images.Captcha setBackground(java.lang.String from, java.lang.String to)
public Images.Captcha setBackground(java.lang.String color)
public Images.Captcha setSquigglesBackground()
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |