com.octo.captcha.component.image.color
Class RandomListColorGenerator

java.lang.Object
  extended by com.octo.captcha.component.image.color.RandomListColorGenerator
All Implemented Interfaces:
ColorGenerator

public class RandomListColorGenerator
extends java.lang.Object
implements ColorGenerator

A RandomListColor returns a random color have been picked from a user defined colors list.


Constructor Summary
RandomListColorGenerator(java.awt.Color[] colorsList)
          Constructor that take an array of Color
 
Method Summary
 java.awt.Color getNextColor()
          This return a new color, from a finite set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomListColorGenerator

public RandomListColorGenerator(java.awt.Color[] colorsList)
Constructor that take an array of Color

Parameters:
colorsList - the array of color
Method Detail

getNextColor

public java.awt.Color getNextColor()
Description copied from interface: ColorGenerator
This return a new color, from a finite set.

Specified by:
getNextColor in interface ColorGenerator
Returns:
the next color
See Also:
ColorGenerator.getNextColor()


Copyright 2003-2009 JCaptcha. All Rights Reserved.