org.jboss.test.selenium.utils
Class ColorUtils

java.lang.Object
  extended by org.jboss.test.selenium.utils.ColorUtils

public class ColorUtils
extends java.lang.Object

Provides Color manipulations and functionality.

Version:
$Revision$
Author:
Lukas Fryc

Constructor Summary
ColorUtils()
           
 
Method Summary
static java.awt.Color convertToAWTColor(java.lang.String colorValue)
           Converts a string representation of color to AWT Color object.
static int convertToInteger(java.lang.String colorValue)
           Converts a string representation of color to integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorUtils

public ColorUtils()
Method Detail

convertToInteger

public static int convertToInteger(java.lang.String colorValue)

Converts a string representation of color to integer.

Works with two formats:

Parameters:
colorValue - string represented in one of two formats
Returns:
integer value of color derived from string representation

convertToAWTColor

public static java.awt.Color convertToAWTColor(java.lang.String colorValue)

Converts a string representation of color to AWT Color object.

Works with two formats:

Parameters:
colorValue - string represented in one of two formats
Returns:
AWT's Color value representation of string-represented colorValue; if colorValue is null, returns null


Copyright © 2010. All Rights Reserved.