com.octo.captcha.component.image.textpaster.glyphsdecorator
Class RandomLinesGlyphsDecorator

java.lang.Object
  extended by com.octo.captcha.component.image.textpaster.glyphsdecorator.RandomLinesGlyphsDecorator
All Implemented Interfaces:
GlyphsDecorator

public class RandomLinesGlyphsDecorator
extends java.lang.Object
implements GlyphsDecorator

Author:
mag

Constructor Summary
RandomLinesGlyphsDecorator(double numberOfLinesPerGlyph, ColorGenerator linesColorGenerator, double lineWidth, double lineLength)
           
 
Method Summary
 void decorate(java.awt.Graphics2D g2, Glyphs glyphs, java.awt.image.BufferedImage background)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomLinesGlyphsDecorator

public RandomLinesGlyphsDecorator(double numberOfLinesPerGlyph,
                                  ColorGenerator linesColorGenerator,
                                  double lineWidth,
                                  double lineLength)
Method Detail

decorate

public void decorate(java.awt.Graphics2D g2,
                     Glyphs glyphs,
                     java.awt.image.BufferedImage background)
Specified by:
decorate in interface GlyphsDecorator


Copyright © 2003-2011 JCaptcha corp.. All Rights Reserved.