类 AbstractTextRenderer
java.lang.Object
spring.turbo.module.misc.captcha.google.renderer.AbstractTextRenderer
- 所有已实现的接口:
TextRenderer
- 从以下版本开始:
- 1.0.0
-
字段概要
字段修饰符和类型字段说明protected intprotected intprotected intprotected int -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected abstract voidarrangeCharacters(int width, int height, TextString ts) protected TextStringconvertToCharacters(String text, Graphics2D g, FontFactory fontFactory, ColorFactory colorFactory) voiddraw(String text, BufferedImage canvas, FontFactory fontFactory, ColorFactory colorFactory) voidsetBottomMargin(int bottomMargin) voidsetLeftMargin(int leftMargin) voidsetRightMargin(int rightMargin) voidsetTopMargin(int topMargin)
-
字段详细资料
-
leftMargin
protected int leftMargin -
rightMargin
protected int rightMargin -
topMargin
protected int topMargin -
bottomMargin
protected int bottomMargin
-
-
构造器详细资料
-
AbstractTextRenderer
public AbstractTextRenderer()
-
-
方法详细资料
-
arrangeCharacters
-
setLeftMargin
public void setLeftMargin(int leftMargin) - 指定者:
setLeftMargin在接口中TextRenderer
-
setRightMargin
public void setRightMargin(int rightMargin) - 指定者:
setRightMargin在接口中TextRenderer
-
setTopMargin
public void setTopMargin(int topMargin) - 指定者:
setTopMargin在接口中TextRenderer
-
setBottomMargin
public void setBottomMargin(int bottomMargin) - 指定者:
setBottomMargin在接口中TextRenderer
-
draw
public void draw(String text, BufferedImage canvas, FontFactory fontFactory, ColorFactory colorFactory) - 指定者:
draw在接口中TextRenderer
-
convertToCharacters
protected TextString convertToCharacters(String text, Graphics2D g, FontFactory fontFactory, ColorFactory colorFactory)
-