play.libs
类 Images.Captcha

java.lang.Object
  继承者 java.io.InputStream
      继承者 play.libs.Images.Captcha
所有已实现的接口:
java.io.Closeable
包容类:
Images

public static class Images.Captcha
extends java.io.InputStream

A captcha image.


字段摘要
 jj.play.ns.nl.captcha.backgrounds.BackgroundProducer background
           
 java.util.List<java.awt.Font> fonts
           
 jj.play.ns.nl.captcha.gimpy.GimpyRenderer gimpy
           
 int h
           
 java.awt.Color noise
           
 java.lang.String text
           
 java.awt.Color textColor
           
 int w
           
 
构造方法摘要
Images.Captcha(int w, int h)
           
 
方法摘要
 Images.Captcha addNoise()
          Add noise to the captcha.
 Images.Captcha addNoise(java.lang.String color)
          Add noise to the captcha.
 java.lang.String getText()
          Tell the captche to draw a text and retrieve it
 java.lang.String getText(int length)
          Tell the captche to draw a text of the specified size and retrieve it
 java.lang.String getText(int length, java.lang.String chars)
           
 java.lang.String getText(java.lang.String color)
          Tell the captche to draw a text using the specified color (ex. #000000) and retrieve it
 java.lang.String getText(java.lang.String color, int length)
          Tell the captche to draw a text of the specified size using the specified color (ex. #000000) and retrieve it
 java.lang.String getText(java.lang.String color, int length, java.lang.String chars)
           
 int read()
           
 int read(byte[] b)
           
 Images.Captcha setBackground(java.lang.String color)
          Set a solid background.
 Images.Captcha setBackground(java.lang.String from, java.lang.String to)
          Set a gradient background.
 Images.Captcha setSquigglesBackground()
          Set a squiggles background
 
从类 java.io.InputStream 继承的方法
available, close, mark, markSupported, read, reset, skip
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

text

public java.lang.String text

background

public jj.play.ns.nl.captcha.backgrounds.BackgroundProducer background

gimpy

public jj.play.ns.nl.captcha.gimpy.GimpyRenderer gimpy

textColor

public java.awt.Color textColor

fonts

public java.util.List<java.awt.Font> fonts

w

public int w

h

public int h

noise

public java.awt.Color noise
构造方法详细信息

Images.Captcha

public Images.Captcha(int w,
                      int h)
方法详细信息

getText

public java.lang.String getText()
Tell the captche to draw a text and retrieve it


getText

public java.lang.String getText(java.lang.String color)
Tell the captche to draw a text using the specified color (ex. #000000) and retrieve it


getText

public java.lang.String getText(int length)
Tell the captche to draw a text of the specified size and retrieve it


getText

public java.lang.String getText(java.lang.String color,
                                int length)
Tell the captche to draw a text of the specified size using the specified color (ex. #000000) and retrieve it


getText

public java.lang.String getText(int length,
                                java.lang.String chars)

getText

public java.lang.String getText(java.lang.String color,
                                int length,
                                java.lang.String chars)

addNoise

public Images.Captcha addNoise()
Add noise to the captcha.


addNoise

public Images.Captcha addNoise(java.lang.String color)
Add noise to the captcha.


setBackground

public Images.Captcha setBackground(java.lang.String from,
                                    java.lang.String to)
Set a gradient background.


setBackground

public Images.Captcha setBackground(java.lang.String color)
Set a solid background.


setSquigglesBackground

public Images.Captcha setSquigglesBackground()
Set a squiggles background


read

public int read()
         throws java.io.IOException
指定者:
java.io.InputStream 中的 read
抛出:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
覆盖:
java.io.InputStream 中的 read
抛出:
java.io.IOException


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly