public abstract class AbstractChineseCaptcha extends AbstractCaptcha
| Modifier and Type | Field and Description |
|---|---|
static String |
DELTA
常用汉字
|
chars, charType, COLOR, font, height, len, TYPE_DEFAULT, TYPE_NUM_AND_UPPER, TYPE_ONLY_CHAR, TYPE_ONLY_LOWER, TYPE_ONLY_NUMBER, TYPE_ONLY_UPPER, widthALPHA, charMaxIndex, charMinIndex, lowerMaxIndex, lowerMinIndex, numMaxIndex, RANDOM, upperMaxIndex, upperMinIndex| Constructor and Description |
|---|
AbstractChineseCaptcha() |
| Modifier and Type | Method and Description |
|---|---|
static char |
alphaHan()
返回随机汉字
|
protected char[] |
alphas()
生成随机验证码
|
void |
drawLine(int num,
Color color,
Graphics2D g)
随机画干扰线
|
checkAlpha, color, color, drawLine, drawOval, drawOval, getCharType, getFont, getHeight, getLen, getWidth, out, setCharType, setFont, setHeight, setLen, setWidth, text, textCharpublic static final String DELTA
public static char alphaHan()
protected char[] alphas()
alphas in class AbstractCaptchapublic void drawLine(int num,
Color color,
Graphics2D g)
AbstractCaptchadrawLine in class AbstractCaptchanum - 数量color - 颜色g - Graphics2DCopyright © 2020. All rights reserved.