com.octo.captcha.component.image.textpaster
Class VisitedAndDecoratedTextPaster

java.lang.Object
  extended by com.octo.captcha.component.image.textpaster.AbstractTextPaster
      extended by com.octo.captcha.component.image.textpaster.VisitedAndDecoratedTextPaster
All Implemented Interfaces:
TextPaster

Deprecated.

public class VisitedAndDecoratedTextPaster
extends AbstractTextPaster


Field Summary
protected  int kerning
          Deprecated.  
 
Fields inherited from class com.octo.captcha.component.image.textpaster.AbstractTextPaster
myRandom
 
Constructor Summary
VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength, java.lang.Integer maxAcceptedWordLength, ColorGenerator colorGenerator, java.lang.Boolean manageColorPerGlyph, TextVisitor[] textVisitors, TextDecorator[] textDecorators)
          Deprecated.  
VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength, java.lang.Integer maxAcceptedWordLength, ColorGenerator colorGenerator, TextVisitor[] textVisitors, TextDecorator[] textDecorators)
          Deprecated.  
VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength, java.lang.Integer maxAcceptedWordLength, java.awt.Color textColor, TextVisitor[] textVisitors, TextDecorator[] textDecorators)
          Deprecated.  
VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength, java.lang.Integer maxAcceptedWordLength, TextVisitor[] textVisitors, TextDecorator[] textDecorators)
          Deprecated.  
 
Method Summary
 java.awt.image.BufferedImage pasteText(java.awt.image.BufferedImage background, java.text.AttributedString attributedWord)
          Deprecated. Pastes the attributed string on the backround image and return the final image.
 
Methods inherited from class com.octo.captcha.component.image.textpaster.AbstractTextPaster
getColorGenerator, getMaxAcceptedWordLenght, getMaxAcceptedWordLength, getMinAcceptedWordLenght, getMinAcceptedWordLength, isManageColorPerGlyph, setColorGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kerning

protected final int kerning
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

VisitedAndDecoratedTextPaster

public VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength,
                                     java.lang.Integer maxAcceptedWordLength,
                                     TextVisitor[] textVisitors,
                                     TextDecorator[] textDecorators)
Deprecated. 

VisitedAndDecoratedTextPaster

public VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength,
                                     java.lang.Integer maxAcceptedWordLength,
                                     java.awt.Color textColor,
                                     TextVisitor[] textVisitors,
                                     TextDecorator[] textDecorators)
Deprecated. 

VisitedAndDecoratedTextPaster

public VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength,
                                     java.lang.Integer maxAcceptedWordLength,
                                     ColorGenerator colorGenerator,
                                     TextVisitor[] textVisitors,
                                     TextDecorator[] textDecorators)
Deprecated. 

VisitedAndDecoratedTextPaster

public VisitedAndDecoratedTextPaster(java.lang.Integer minAcceptedWordLength,
                                     java.lang.Integer maxAcceptedWordLength,
                                     ColorGenerator colorGenerator,
                                     java.lang.Boolean manageColorPerGlyph,
                                     TextVisitor[] textVisitors,
                                     TextDecorator[] textDecorators)
Deprecated. 
Method Detail

pasteText

public java.awt.image.BufferedImage pasteText(java.awt.image.BufferedImage background,
                                              java.text.AttributedString attributedWord)
                                       throws CaptchaException
Deprecated. 
Pastes the attributed string on the backround image and return the final image. Implementation must take into account the fact that the text must be readable by human and non by programs

Returns:
the final image
Throws:
CaptchaException - if any exception accurs during paste routine.


Copyright 2003-2009 JCaptcha. All Rights Reserved.