API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.captcha.generators. JOTSTDCaptchaGenerator View Source
Author(s)
thibautc
Since
Version
Serial
Hierarchy
 Object
      JOTSTDCaptchaGenerator
Implements
 JOTCaptchaGeneratorInterface
Subclasses
Description
public class JOTSTDCaptchaGenerator
My own captcha impl, called "drunk" because of the way the letters look (wavy) Generate 200x60 captcha containing 5 characters characters used are listed in CHARS (others can be confusing) Background of image is white Characters use Random colors We add some random lines of the same color as the characters to the background(1 pixel thick) Characters "size" varies a bit between (scale: 3 to 5) Characters lines thickness vary from 3 to 5 Characters are drown using "wavy" lines (wavyness: 1 to 4) Wavy lines will also have holes in them (sometimes)
See also:   
Constructors
public JOTSTDCaptchaGenerator ()
Methods
Hide/Show inherited methods
public String getChars () [Specified in JOTCaptchaGeneratorInterface]
public String writeToBrowser (JOTAbstractImageWriterInterface writer, HttpServletResponse response) throws Exception [Specified in JOTCaptchaGeneratorInterface]
public String writeToFile (JOTAbstractImageWriterInterface writer, File imageFile) throws Exception [Specified in JOTCaptchaGeneratorInterface]
Fields
Hide/Show inherited fields
publicfinalstatic int BG_LINES = "40"
publicfinalstatic int BG_LINES_LENGTH = "150"
publicfinalstatic int CHAR_THICKNESS_MAX = "5"
publicfinalstatic int CHAR_THICKNESS_MIN = "3"
publicfinalstatic int CODE_LENGTH_MAX = "6"
publicfinalstatic int CODE_LENGTH_MIN = "4"
publicfinalstatic int FG_LINES = "10"
publicfinalstatic int FG_LINES_LENGTH = "180"
publicfinalstatic int HEIGHT = "60"
publicfinalstatic int MAX_CHAR_COLORS = "6"
publicfinalstatic int MAX_CHAR_SCALE = "5"
publicfinalstatic int MIN_CHAR_COLORS = "1"
publicfinalstatic int MIN_CHAR_SCALE = "3"
publicfinalstatic int WAVYNESS_MAX = "4"
publicfinalstatic int WAVYNESS_MIN = "1"
publicfinalstatic int WIDTH = "220"
Nested Classes
  JOTSTDCaptchaGenerator.Line
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar