org.zkoss.zul.impl
Class SimpleCaptchaEngine

java.lang.Object
  extended by org.zkoss.zul.impl.SimpleCaptchaEngine
All Implemented Interfaces:
java.io.Serializable, CaptchaEngine

public class SimpleCaptchaEngine
extends java.lang.Object
implements CaptchaEngine, java.io.Serializable

A Facade Captcha engine implementation.

Author:
henrichen
See Also:
Serialized Form

Constructor Summary
SimpleCaptchaEngine()
           
 
Method Summary
protected  int drawText(java.awt.Graphics2D g2D, Captcha captcha)
           
 byte[] generateCaptcha(java.lang.Object data)
          Per the given data, generate the distortion Captcha image into a byte array.
protected  java.awt.image.BufferedImage rotateChar(java.lang.String substr, int width, int height, java.awt.Font font, java.awt.Color fontColor, java.awt.Color bgColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCaptchaEngine

public SimpleCaptchaEngine()
Method Detail

generateCaptcha

public byte[] generateCaptcha(java.lang.Object data)
Description copied from interface: CaptchaEngine
Per the given data, generate the distortion Captcha image into a byte array.

Specified by:
generateCaptcha in interface CaptchaEngine

drawText

protected int drawText(java.awt.Graphics2D g2D,
                       Captcha captcha)

rotateChar

protected java.awt.image.BufferedImage rotateChar(java.lang.String substr,
                                                  int width,
                                                  int height,
                                                  java.awt.Font font,
                                                  java.awt.Color fontColor,
                                                  java.awt.Color bgColor)


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.