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

java.lang.Object
  extended by org.apache.myfaces.custom.captcha.util.ColorGenerator

public class ColorGenerator
extends java.lang.Object

This class is responsible for generating CAPTCHA random color...

Since:
1.1.7

Constructor Summary
ColorGenerator()
           
 
Method Summary
static java.awt.Color generateRandomColor(java.awt.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 java.awt.Color generateRandomColor(java.awt.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 © 2011 The Apache Software Foundation. All Rights Reserved.