com.google.code.kaptcha.util
Class Config

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

public class Config
extends Object

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


Constructor Summary
Config(Properties properties)
           
 
Method Summary
 Color getBackgroundColorFrom()
           
 Color getBackgroundColorTo()
           
 BackgroundProducer getBackgroundImpl()
           
 Color getBorderColor()
           
 int getBorderThickness()
           
 int getHeight()
           
 Color getNoiseColor()
           
 NoiseProducer getNoiseImpl()
           
 GimpyEngine getObscurificatorImpl()
           
 Producer getProducerImpl()
           
 Properties getProperties()
           
 String getSessionDate()
          Allows one to override the date name which is stored in the users HttpSession.
 String getSessionKey()
          Allows one to override the key name which is stored in the users HttpSession.
 int getTextProducerCharLength()
           
 int getTextProducerCharSpace()
           
 char[] getTextProducerCharString()
           
 Color getTextProducerFontColor()
           
 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(Properties properties)
Method Detail

isBorderDrawn

public boolean isBorderDrawn()

getBorderColor

public Color getBorderColor()

getBorderThickness

public int getBorderThickness()

getProducerImpl

public Producer getProducerImpl()

getTextProducerImpl

public TextProducer getTextProducerImpl()

getTextProducerCharString

public char[] getTextProducerCharString()

getTextProducerCharLength

public int getTextProducerCharLength()

getTextProducerFonts

public Font[] getTextProducerFonts(int fontSize)

getTextProducerFontSize

public int getTextProducerFontSize()

getTextProducerFontColor

public Color getTextProducerFontColor()

getTextProducerCharSpace

public int getTextProducerCharSpace()

getNoiseImpl

public NoiseProducer getNoiseImpl()

getNoiseColor

public Color getNoiseColor()

getObscurificatorImpl

public GimpyEngine getObscurificatorImpl()

getWordRendererImpl

public WordRenderer getWordRendererImpl()

getBackgroundImpl

public BackgroundProducer getBackgroundImpl()

getBackgroundColorFrom

public Color getBackgroundColorFrom()

getBackgroundColorTo

public Color getBackgroundColorTo()

getWidth

public int getWidth()

getHeight

public int getHeight()

getSessionKey

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


getSessionDate

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


getProperties

public Properties getProperties()


Copyright © 2013. All rights reserved.