com.octo.captcha.engine.image
Class ListImageCaptchaEngine

java.lang.Object
  extended by com.octo.captcha.engine.image.ImageCaptchaEngine
      extended by com.octo.captcha.engine.image.ListImageCaptchaEngine
All Implemented Interfaces:
CaptchaEngine
Direct Known Subclasses:
BaffleListGimpyEngine, BasicListGimpyEngine, DefaultGimpyEngine, DeformedBaffleListGimpyEngine, DoubleRandomListGimpyEngine, FilteredBaffleListGimpyEngine, FilteredDoubleRandomListGimpyEngine, FilteredListGimpyEngine, NonLinearTextGimpyEngine, SimpleFishEyeEngine, SimpleListImageCaptchaEngine

public abstract class ListImageCaptchaEngine
extends ImageCaptchaEngine

This engine is based on a java.util.List of factories. It has a default constructor. Sub class must implements the buildInitialFactories() method that should build an initial set of factories.


Field Summary
 
Fields inherited from class com.octo.captcha.engine.image.ImageCaptchaEngine
factories, myRandom
 
Constructor Summary
ListImageCaptchaEngine()
           
 
Method Summary
 void addFactories(ImageCaptchaFactory[] factories)
          Add an array of factories to the gimpy list
 boolean addFactory(ImageCaptchaFactory factory)
          Add a factory to the gimpy list
protected abstract  void buildInitialFactories()
          this method should be implemented as folow : First construct all the factories you want to initialize the gimpy with then call the this.addFactoriy method for each factory
 
Methods inherited from class com.octo.captcha.engine.image.ImageCaptchaEngine
checkNotNullOrEmpty, getFactories, getImageCaptchaFactory, getNextCaptcha, getNextCaptcha, getNextImageCaptcha, getNextImageCaptcha, setFactories
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListImageCaptchaEngine

public ListImageCaptchaEngine()
Method Detail

buildInitialFactories

protected abstract void buildInitialFactories()
this method should be implemented as folow :


addFactory

public boolean addFactory(ImageCaptchaFactory factory)
Add a factory to the gimpy list

Returns:
true if added false otherwise

addFactories

public void addFactories(ImageCaptchaFactory[] factories)
Add an array of factories to the gimpy list



Copyright 2003-2009 JCaptcha. All Rights Reserved.