com.octo.captcha.component.image.fontgenerator
Class DeformedRandomFontGenerator

java.lang.Object
  extended by com.octo.captcha.component.image.fontgenerator.AbstractFontGenerator
      extended by com.octo.captcha.component.image.fontgenerator.RandomFontGenerator
          extended by com.octo.captcha.component.image.fontgenerator.DeformedRandomFontGenerator
All Implemented Interfaces:
FontGenerator

public class DeformedRandomFontGenerator
extends RandomFontGenerator

Takes a random font and apply a rotation to it.


Field Summary
 
Fields inherited from class com.octo.captcha.component.image.fontgenerator.RandomFontGenerator
defaultBadFontNamePrefixes, myRandom
 
Constructor Summary
DeformedRandomFontGenerator(java.lang.Integer minFontSize, java.lang.Integer maxFontSize)
           
 
Method Summary
protected  java.awt.Font applyCustomDeformationOnGeneratedFont(java.awt.Font font)
          Provides a way for children class to customize the generated font array
 
Methods inherited from class com.octo.captcha.component.image.fontgenerator.RandomFontGenerator
applyStyle, cleanFontList, getBadFontNamePrefixes, getFont, getRequiredCharacters, setBadFontNamePrefixes, setRequiredCharacters
 
Methods inherited from class com.octo.captcha.component.image.fontgenerator.AbstractFontGenerator
getMaxFontSize, getMinFontSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeformedRandomFontGenerator

public DeformedRandomFontGenerator(java.lang.Integer minFontSize,
                                   java.lang.Integer maxFontSize)
Method Detail

applyCustomDeformationOnGeneratedFont

protected java.awt.Font applyCustomDeformationOnGeneratedFont(java.awt.Font font)
Provides a way for children class to customize the generated font array

Overrides:
applyCustomDeformationOnGeneratedFont in class RandomFontGenerator
Parameters:
font -
Returns:
a customized font


Copyright 2003-2009 JCaptcha. All Rights Reserved.