com.octo.captcha.image.fisheye
Class FishEyeFactory
java.lang.Object
com.octo.captcha.image.ImageCaptchaFactory
com.octo.captcha.image.fisheye.FishEyeFactory
- All Implemented Interfaces:
- CaptchaFactory
public class FishEyeFactory
- extends ImageCaptchaFactory
This factory use a Backgroud generator to retrieve a picture, Selects a random square center for the deformation, and
apply it.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUNDLE_QUESTION_KEY
public static final java.lang.String BUNDLE_QUESTION_KEY
FishEyeFactory
public FishEyeFactory(BackgroundGenerator generator,
ImageDeformation deformation,
java.lang.Integer scale,
java.lang.Integer tolerance)
- Construct a new fishEye factory
- Parameters:
generator
- the picture generatordeformation
- a deformation to be apply on the backgroundscale
- the size of the defprmed part (percent)tolerance
- the tolerence (see FishEye)- See Also:
FishEye
getImageCaptcha
public ImageCaptcha getImageCaptcha()
- gimpies are ImageCaptcha
- Specified by:
getImageCaptcha
in class ImageCaptchaFactory
- Returns:
- the image captcha with default locale
getImageCaptcha
public ImageCaptcha getImageCaptcha(java.util.Locale locale)
- gimpies are ImageCaptcha
- Specified by:
getImageCaptcha
in class ImageCaptchaFactory
- Returns:
- a pixCaptcha with the question :"spell the word"
Copyright 2003-2009 JCaptcha. All Rights Reserved.