Classes in com.octo.captcha.component.image.wordtoimage that implement WordToImage |
class |
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. |
class |
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
|
class |
DeformedComposedWordToImage
This implementation uses deformation components to distord the image. |
class |
SimpleWordToImage
Simple image to word implementation. |