com.octo.captcha.image.fisheye
Class FishEyeFactory

java.lang.Object
  extended by com.octo.captcha.image.ImageCaptchaFactory
      extended by 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.


Field Summary
static java.lang.String BUNDLE_QUESTION_KEY
           
 
Constructor Summary
FishEyeFactory(BackgroundGenerator generator, ImageDeformation deformation, java.lang.Integer scale, java.lang.Integer tolerance)
          Construct a new fishEye factory
 
Method Summary
 ImageCaptcha getImageCaptcha()
          gimpies are ImageCaptcha
 ImageCaptcha getImageCaptcha(java.util.Locale locale)
          gimpies are ImageCaptcha
 
Methods inherited from class com.octo.captcha.image.ImageCaptchaFactory
getCaptcha, getCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUNDLE_QUESTION_KEY

public static final java.lang.String BUNDLE_QUESTION_KEY
Constructor Detail

FishEyeFactory

public FishEyeFactory(BackgroundGenerator generator,
                      ImageDeformation deformation,
                      java.lang.Integer scale,
                      java.lang.Integer tolerance)
Construct a new fishEye factory

Parameters:
generator - the picture generator
deformation - a deformation to be apply on the background
scale - the size of the defprmed part (percent)
tolerance - the tolerence (see FishEye)
See Also:
FishEye
Method Detail

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.