com.octo.captcha.component.image.textpaster.textdecorator
Class BaffleTextDecorator
java.lang.Object
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}
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 glyphesholesColorGenerator
- The colors for holes
BaffleTextDecorator
public BaffleTextDecorator(java.lang.Integer numberOfHolesPerGlyph,
ColorGenerator holesColorGenerator,
java.lang.Integer alphaCompositeType)
- Deprecated.
- Parameters:
numberOfHolesPerGlyph
- Number of holes around glyphesholesColorGenerator
- The colors for holes
decorateAttributedString
public void decorateAttributedString(java.awt.Graphics2D g2,
MutableAttributedString mutableAttributedString)
- Deprecated.
- Specified by:
decorateAttributedString
in interface TextDecorator
Copyright 2003-2009 JCaptcha. All Rights Reserved.