com.google.code.kaptcha.util
Class Config
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Config
public Config(java.util.Properties properties)
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