Dashboard > JCaptcha > ... > core > design
JCaptcha
design
Added by marc antoine garrigue , last edited by marc antoine garrigue on Jan 16, 2005  (view change)
Labels: 
(None)

main interfaces...

The two main interfaces of this package are :

  • Captcha : a representation of the 'are you human' test
    • It is basically composed of a question, a challenge, and a validation routine.
  • CaptchaFactory : the Captcha builder, that use others Core components to build captchas

...and components

This module defines also a component sub package that contains components used by factories to build captchas. Components are used by Captcha factories to build captchas.

Word

Package Component Feature Interface
com.octo.captcha.wordgenerator WordGenerator Generate random localized strings ComposeDictionnayWordGenerator (use a dictonnary to compose meaningless words)

Image

Package Component Feature Interface
com.octo.captcha.image image components Generate images See sub packages
com.octo.captcha.image.backgroundgenerator background component Generate background images FileReaderBackgroundGenerator
com.octo.captcha.image.deformation deformation component Apply deformation to images ImageDeformationByFilters
com.octo.captcha.image.textpaster text past component Past a text on a backgroung SimpleTextePaster
com.octo.captcha.image.fontgenerator font component generate a font TwistedAndShearedRandomFontGenerator
com.octo.captcha.image.wordtoimage word to image component create an image from a string DeformedComposedWordToImage

Sound

Package Component Feature Interface
com.octo.captcha.sound sound components Generate sounds See sub packages

Hi,
I am creating my own TextPaster and BackgroundGenerator classes for our project.
I see that there are a lot of methods in
com.octo.captcha.image.textpaster.AbstractTextPaster (and AbstractBackgroundGenerator etc.) that are package methods. For me and a many this fact means that you can't extend these classes (unless you stay in the same package) and reuse these methods.
My obvious proposition is to make all these methods protected.

Thanks Oscar Marcu

Posted by Anonymous at Sep 01, 2005 15:58
Powered by a free Atlassian Confluence Open Source Project License granted to JCAPTCHA. Evaluate Confluence today.
Powered by Atlassian Confluence 2.7, the Enterprise Wiki. Bug/feature request - Atlassian news - Contact administrators