|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.github.cage.Cage com.github.cage.YCage
public class YCage
Creates and configures a Cage
instance that can generate captcha
images similar to Yahoo's. This is the "Y" template. Simply create an
instance with new YCage()
and you can generate images. See
Cage
for more info.
This class is thread safe.
Field Summary | |
---|---|
protected static int |
HEIGHT
Height of CAPTCHA image. |
protected static char[] |
TOKEN_DEFAULT_CHARACTER_SET
Character set supplied to the RandomTokenGenerator used by this
template. |
protected static int |
TOKEN_LEN_DELTA
Maximum length of token is 6 + 2. |
protected static int |
TOKEN_LEN_MIN
Minimum length of token. |
protected static int |
WIDTH
Width of CAPTCHA image. |
Fields inherited from class com.github.cage.Cage |
---|
DEFAULT_COMPRESS_RATIO, DEFAULT_FORMAT |
Constructor Summary | |
---|---|
|
YCage()
Constructor. |
protected |
YCage(Random rnd)
Constructor. |
Method Summary |
---|
Methods inherited from class com.github.cage.Cage |
---|
draw, draw, drawImage, getCompressRatio, getFonts, getForegrounds, getFormat, getPainter, getTokenGenerator, serialize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int HEIGHT
protected static final int WIDTH
protected static final char[] TOKEN_DEFAULT_CHARACTER_SET
RandomTokenGenerator
used by this
template.
protected static final int TOKEN_LEN_MIN
protected static final int TOKEN_LEN_DELTA
Constructor Detail |
---|
public YCage()
protected YCage(Random rnd)
rnd
- object used for random value generation. Not null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |