com.octo.captcha.component.image.wordtoimage
Class ComposedWordToImage

java.lang.Object
  extended by com.octo.captcha.component.image.wordtoimage.AbstractWordToImage
      extended by 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 :


Constructor Summary
ComposedWordToImage(FontGenerator fontGenerator, BackgroundGenerator background, TextPaster textPaster)
           
 
Method Summary
 int getImageHeight()
           
 int getImageWidth()
           
 int getMaxAcceptedWordLenght()
          Deprecated.  
 int getMaxAcceptedWordLength()
           
 int getMinAcceptedWordLenght()
          Deprecated.  
 int getMinAcceptedWordLength()
           
 int getMinFontSize()
           
 
Methods inherited from class com.octo.captcha.component.image.wordtoimage.AbstractWordToImage
getImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComposedWordToImage

public ComposedWordToImage(FontGenerator fontGenerator,
                           BackgroundGenerator background,
                           TextPaster textPaster)
Parameters:
fontGenerator - a AbstractFontGenerator to implement the getFont() method
background - a AbstractBackgroundGenerator to implement the getBackround() method
textPaster - a AbstractTextParser to implement the pasteText() method
Method Detail

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.