com.google.code.kaptcha.util
Class Config

java.lang.Object
  extended by com.google.code.kaptcha.util.Config

public class Config
extends java.lang.Object

Config retrieves configuration values from properties file and specifies default values when no value is specified.


Constructor Summary
Config(java.util.Properties properties)
           
 
Method Summary
 java.awt.Color getBackgroundColorFrom()
           
 java.awt.Color getBackgroundColorTo()
           
 BackgroundProducer getBackgroundImpl()
           
 java.awt.Color getBorderColor()
           
 int getBorderThickness()
           
 int getHeight()
           
 java.awt.Color getNoiseColor()
           
 NoiseProducer getNoiseImpl()
           
 GimpyEngine getObscurificatorImpl()
           
 Producer getProducerImpl()
           
 java.util.Properties getProperties()
           
 java.lang.String getSessionDate()
          Allows one to override the date name which is stored in the users HttpSession.
 java.lang.String getSessionKey()
          Allows one to override the key name which is stored in the users HttpSession.
 int getTextProducerCharLength()
           
 int getTextProducerCharSpace()
           
 char[] getTextProducerCharString()
           
 java.awt.Color getTextProducerFontColor()
           
 java.awt.Font[] getTextProducerFonts(int fontSize)
           
 int getTextProducerFontSize()
           
 TextProducer getTextProducerImpl()
           
 int getWidth()
           
 WordRenderer getWordRendererImpl()
           
 boolean isBorderDrawn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Config

public Config(java.util.Properties properties)
Method Detail

isBorderDrawn

public boolean isBorderDrawn()

getBorderColor

public java.awt.Color getBorderColor()

getBorderThickness

public int getBorderThickness()

getProducerImpl

public Producer getProducerImpl()

getTextProducerImpl

public TextProducer getTextProducerImpl()

getTextProducerCharString

public char[] getTextProducerCharString()

getTextProducerCharLength

public int getTextProducerCharLength()

getTextProducerFonts

public java.awt.Font[] getTextProducerFonts(int fontSize)

getTextProducerFontSize

public int getTextProducerFontSize()

getTextProducerFontColor

public java.awt.Color getTextProducerFontColor()

getTextProducerCharSpace

public int getTextProducerCharSpace()

getNoiseImpl

public NoiseProducer getNoiseImpl()

getNoiseColor

public java.awt.Color getNoiseColor()

getObscurificatorImpl

public GimpyEngine getObscurificatorImpl()

getWordRendererImpl

public WordRenderer getWordRendererImpl()

getBackgroundImpl

public BackgroundProducer getBackgroundImpl()

getBackgroundColorFrom

public java.awt.Color getBackgroundColorFrom()

getBackgroundColorTo

public java.awt.Color getBackgroundColorTo()

getWidth

public int getWidth()

getHeight

public int getHeight()

getSessionKey

public java.lang.String getSessionKey()
Allows one to override the key name which is stored in the users HttpSession. Defaults to Constants.KAPTCHA_SESSION_KEY.


getSessionDate

public java.lang.String getSessionDate()
Allows one to override the date name which is stored in the users HttpSession. Defaults to Constants.KAPTCHA_SESSION_KEY.


getProperties

public java.util.Properties getProperties()


Copyright © 2010 Kaptcha. All Rights Reserved. Build version: 2.3.2