org.apache.myfaces.custom.captcha.util
Class ColorGenerator
java.lang.Object
org.apache.myfaces.custom.captcha.util.ColorGenerator
public class ColorGenerator
- extends Object
This class is responsible for generating CAPTCHA random color...
- Since:
- 1.1.7
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorGenerator
public ColorGenerator()
generateRandomColor
public static Color generateRandomColor(Color startFrom)
- This method is used for generating a random color.
- Parameters:
startFrom
- -> the color that we should be away from.
- Returns:
- the new color.
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.