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

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

public abstract class AbstractFontGenerator
extends java.lang.Object
implements FontGenerator

Base class for Font generators. Sub classes must implement the getFont() method that return a Font.
use constructor to specify your generator properties. This base class only use two parameters, minFontSize and maxFontsize wich are the size font boundaries returned by the implementation. By default minFontSize=10 and maxFontSize = 14.

Version:
1.0
Author:
Marc-Antoine Garrigue

Method Summary
 int getMaxFontSize()
           
 int getMinFontSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.octo.captcha.component.image.fontgenerator.FontGenerator
getFont
 

Method Detail

getMinFontSize

public int getMinFontSize()
Specified by:
getMinFontSize in interface FontGenerator
Returns:
the min font size for the generated image

getMaxFontSize

public int getMaxFontSize()
Specified by:
getMaxFontSize in interface FontGenerator
Returns:
the max font size for the generated image


Copyright © 2003-2012 JCaptcha corp.. All Rights Reserved.