com.octo.captcha.component.image.wordtoimage
Class ComposedWordToImage
java.lang.Object
com.octo.captcha.component.image.wordtoimage.AbstractWordToImage
com.octo.captcha.component.image.wordtoimage.ComposedWordToImage
- All Implemented Interfaces:
- WordToImage
- Direct Known Subclasses:
- DeformedComposedWordToImage, FilteredComposedWordToImage
public class ComposedWordToImage
- extends AbstractWordToImage
Base class for composed WordToImage
It extends the AbstractWord to image and uses three others Components :
- a FontGenerator to implement the getFont() method
- a BackgroundGenerator to implement the
getBackround() method
- a TextParser to implement the pasteText() method
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComposedWordToImage
public ComposedWordToImage(FontGenerator fontGenerator,
BackgroundGenerator background,
TextPaster textPaster)
- Parameters:
fontGenerator
- a AbstractFontGenerator to implement the getFont() methodbackground
- a AbstractBackgroundGenerator to implement the getBackround() methodtextPaster
- a AbstractTextParser to implement the pasteText() method
getMaxAcceptedWordLenght
public int getMaxAcceptedWordLenght()
- Deprecated.
- Returns:
- the max word length accepted by this word2image service
getMinAcceptedWordLenght
public int getMinAcceptedWordLenght()
- Deprecated.
- Returns:
- the min word length accepted by this word2image service
getMaxAcceptedWordLength
public int getMaxAcceptedWordLength()
- Returns:
- the max word length accepted by this word2image service
getMinAcceptedWordLength
public int getMinAcceptedWordLength()
- Returns:
- the min word length accepted by this word2image service
getImageHeight
public int getImageHeight()
- Returns:
- the generated image height
getImageWidth
public int getImageWidth()
- Returns:
- teh generated image width
getMinFontSize
public int getMinFontSize()
- Returns:
- the min font size for the generated image
Copyright 2003-2009 JCaptcha. All Rights Reserved.