com.octo.captcha.image.fisheye
Class FishEye

java.lang.Object
  extended by com.octo.captcha.image.ImageCaptcha
      extended by com.octo.captcha.image.fisheye.FishEye
All Implemented Interfaces:
Captcha, java.io.Serializable

public class FishEye
extends ImageCaptcha

FishEye is an ImageCaptcha

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.octo.captcha.image.ImageCaptcha
challenge, question
 
Constructor Summary
protected FishEye(java.lang.String question, java.awt.image.BufferedImage challenge, java.awt.Point deformationCenter, java.lang.Integer tolerance)
           
 
Method Summary
 java.lang.Boolean validateResponse(java.lang.Object response)
          Validation routine for the response.
 
Methods inherited from class com.octo.captcha.image.ImageCaptcha
disposeChallenge, getChallenge, getImageChallenge, getQuestion, hasGetChalengeBeenCalled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FishEye

protected FishEye(java.lang.String question,
                  java.awt.image.BufferedImage challenge,
                  java.awt.Point deformationCenter,
                  java.lang.Integer tolerance)
Parameters:
question - the question
challenge - the imageChallenge
deformationCenter - the center of the deformation that has been applied to the image in order to validate the answer
tolerance - the max distance to the center of the deformation accepted by the validation routine in pixels.
Method Detail

validateResponse

public java.lang.Boolean validateResponse(java.lang.Object response)
Validation routine for the response.

Parameters:
response - to the question concerning the chalenge
Returns:
true if the answer is correct, false otherwise.


Copyright 2003-2009 JCaptcha. All Rights Reserved.