nl.captcha
Class CaptchaBean

java.lang.Object
  extended by nl.captcha.CaptchaBean

public class CaptchaBean
extends java.lang.Object

Simple CAPTCHA bean intended to be used by Spring.

Author:
James

Constructor Summary
CaptchaBean(int width, int height)
           
 
Method Summary
 CaptchaBean build()
           
 java.lang.String getAnswer()
           
 BackgroundProducer getBgProd()
           
 GimpyRenderer getGimpy()
           
 java.awt.image.BufferedImage getImage()
           
 NoiseProducer getNoiseProd()
           
 TextProducer getTxtProd()
           
 boolean isAddBorder()
           
 boolean isCorrect(java.lang.String answer)
           
 void setAddBorder(boolean addBorder)
           
 void setAnswer(java.lang.String answer)
           
 void setBgProd(BackgroundProducer bgProd)
           
 void setGimpy(GimpyRenderer gimpy)
           
 void setNoiseProd(NoiseProducer noiseProd)
           
 void setTxtProd(TextProducer txtProd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptchaBean

public CaptchaBean(int width,
                   int height)
Method Detail

build

public CaptchaBean build()

isCorrect

public boolean isCorrect(java.lang.String answer)

getImage

public java.awt.image.BufferedImage getImage()

getBgProd

public BackgroundProducer getBgProd()

setBgProd

public void setBgProd(BackgroundProducer bgProd)

getTxtProd

public TextProducer getTxtProd()

setTxtProd

public void setTxtProd(TextProducer txtProd)

getNoiseProd

public NoiseProducer getNoiseProd()

setNoiseProd

public void setNoiseProd(NoiseProducer noiseProd)

getGimpy

public GimpyRenderer getGimpy()

setGimpy

public void setGimpy(GimpyRenderer gimpy)

isAddBorder

public boolean isAddBorder()

setAddBorder

public void setAddBorder(boolean addBorder)

getAnswer

public java.lang.String getAnswer()

setAnswer

public void setAnswer(java.lang.String answer)


Copyright © 2010-2011 James Childers. All Rights Reserved.