org.apache.myfaces.custom.captcha.util
Class ColorGenerator

java.lang.Object
  extended by 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

Constructor Summary
ColorGenerator()
           
 
Method Summary
static Color generateRandomColor(Color startFrom)
          This method is used for generating a random color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorGenerator

public ColorGenerator()
Method Detail

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.