|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.octo.captcha.component.image.textpaster.AbstractTextPaster
public abstract class AbstractTextPaster
Base class for Test pasters. Sub classes must implement the pasteText(BufferedImage background, AttributedString
attributedWord) method that return an image containing the pasted string.
use constructor to specify your paster
properties. This base class use two Integers, maxAcceptedWordLength and minAcceptedWordLength by wich are the length
boundaries for the implementation. By default minAcceptedWordLength = 6 and maxAcceptedWordLength = 20
Field Summary | |
---|---|
java.util.Random |
myRandom
Comment for myRandom |
Method Summary | |
---|---|
protected ColorGenerator |
getColorGenerator()
|
int |
getMaxAcceptedWordLenght()
Deprecated. misspelled, use getMaxAcceptedWordLength() instead |
int |
getMaxAcceptedWordLength()
|
int |
getMinAcceptedWordLenght()
Deprecated. misspelled, use getMinAcceptedWordLength() instead |
int |
getMinAcceptedWordLength()
|
boolean |
isManageColorPerGlyph()
|
void |
setColorGenerator(ColorGenerator colorGenerator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.octo.captcha.component.image.textpaster.TextPaster |
---|
pasteText |
Field Detail |
---|
public java.util.Random myRandom
myRandom
Method Detail |
---|
public int getMaxAcceptedWordLenght()
getMaxAcceptedWordLength()
instead
getMaxAcceptedWordLenght
in interface TextPaster
public int getMinAcceptedWordLenght()
getMinAcceptedWordLength()
instead
getMinAcceptedWordLenght
in interface TextPaster
public int getMaxAcceptedWordLength()
getMaxAcceptedWordLength
in interface TextPaster
public int getMinAcceptedWordLength()
getMinAcceptedWordLength
in interface TextPaster
protected ColorGenerator getColorGenerator()
public boolean isManageColorPerGlyph()
public void setColorGenerator(ColorGenerator colorGenerator)
colorGenerator
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |