Graphene Implementation 1.0.0.CR3

org.jboss.arquillian.ajocado.utils
Class ColorUtils

java.lang.Object
  extended by org.jboss.arquillian.ajocado.utils.ColorUtils

public final class ColorUtils
extends Object

Provides Color manipulations and functionality.

Version:
$Revision$
Author:
Lukas Fryc

Method Summary
static Color convertToAWTColor(String colorValue)
           Converts a string representation of color to AWT Color object.
static int convertToInteger(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
 

Method Detail

convertToInteger

public static int convertToInteger(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 Color convertToAWTColor(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

Graphene Implementation 1.0.0.CR3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.