com.octo.captcha.component.image.textpaster.textdecorator
Class BaffleTextDecorator

java.lang.Object
  extended by com.octo.captcha.component.image.textpaster.textdecorator.BaffleTextDecorator
All Implemented Interfaces:
TextDecorator

Deprecated.

public class BaffleTextDecorator
extends java.lang.Object
implements TextDecorator

text decorator that paint holes on the string (erase some parts)

You may specify the number of holes per glyph : 3 by default. You may specify the color of holes : white by default.

See Also:
{http://www.parc.xerox.com/research/istl/projects/captcha/default.html}

Constructor Summary
BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph, java.awt.Color holesColor)
          Deprecated.  
BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph, ColorGenerator holesColorGenerator)
          Deprecated.  
BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph, ColorGenerator holesColorGenerator, java.lang.Integer alphaCompositeType)
          Deprecated.  
 
Method Summary
 void decorateAttributedString(java.awt.Graphics2D g2, MutableAttributedString mutableAttributedString)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaffleTextDecorator

public BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph,
                           java.awt.Color holesColor)
Deprecated. 
Parameters:
holesColor - Color of the holes

BaffleTextDecorator

public BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph,
                           ColorGenerator holesColorGenerator)
Deprecated. 
Parameters:
numberOfHolesPerGlyph - Number of holes around glyphes
holesColorGenerator - The colors for holes

BaffleTextDecorator

public BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph,
                           ColorGenerator holesColorGenerator,
                           java.lang.Integer alphaCompositeType)
Deprecated. 
Parameters:
numberOfHolesPerGlyph - Number of holes around glyphes
holesColorGenerator - The colors for holes
Method Detail

decorateAttributedString

public void decorateAttributedString(java.awt.Graphics2D g2,
                                     MutableAttributedString mutableAttributedString)
Deprecated. 
Specified by:
decorateAttributedString in interface TextDecorator


Copyright 2003-2009 JCaptcha. All Rights Reserved.