Package com.octo.captcha.component.image.wordtoimage

this package provides implementations of the WordToImage interface.

See:
          Description

Interface Summary
WordToImage Provides methods to tranform a word to an image.
 

Class Summary
AbstractWordToImage

Implementation skeleton for the WordToImage component Basically this class implements the imageFromWord method proceding as folow : Checks the word length Creates an java.text.AttributedString from the word Apply font to the AttributedString using the abstract method getFont Create an image for the background using the abstact method getBackround Put the text on the backround using the abstact method pasteText Return the newly created image

This class implements the Template method pattern from the GOF design patterns.

ComposedWordToImage 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

DeformedComposedWordToImage This implementation uses deformation components to distord the image.
FilteredComposedWordToImage Deprecated. since beta-4 : use DeformedComposedWordToImage, that now use the new deformation component.
SimpleWordToImage Simple image to word implementation.
 

Package com.octo.captcha.component.image.wordtoimage Description

this package provides implementations of the WordToImage interface.
Main class is the AbstractWordToImage wich defines the strucure of the implementations provided.
ComposedWordToImage is the first concrete WordToImage. It is based on the Template method pattern in order to build an image from a word :
It uses three intefraces : located in subpackages

See sub packages for implementations of interfaces.



Copyright 2003-2009 JCaptcha. All Rights Reserved.