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