com.google.code.kaptcha.impl
Class DefaultKaptcha

java.lang.Object
  extended by com.google.code.kaptcha.util.Configurable
      extended by com.google.code.kaptcha.impl.DefaultKaptcha
All Implemented Interfaces:
Producer

public class DefaultKaptcha
extends Configurable
implements Producer

Default Producer implementation which draws a captcha image using WordRenderer, GimpyEngine, BackgroundProducer. Text creation uses TextProducer.


Constructor Summary
DefaultKaptcha()
           
 
Method Summary
 java.awt.image.BufferedImage createImage(java.lang.String text)
          Create an image which will have written a distorted text.
 java.lang.String createText()
           
 
Methods inherited from class com.google.code.kaptcha.util.Configurable
getConfig, setConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultKaptcha

public DefaultKaptcha()
Method Detail

createImage

public java.awt.image.BufferedImage createImage(java.lang.String text)
Create an image which will have written a distorted text.

Specified by:
createImage in interface Producer
Parameters:
text - the distorted characters
Returns:
image with the text

createText

public java.lang.String createText()
Specified by:
createText in interface Producer
Returns:
the text to be drawn


Copyright © 2010 Kaptcha. All Rights Reserved. Build version: 2.3.2