net.sf.freecol.common.resources
Class ColorResource

java.lang.Object
  extended by net.sf.freecol.common.resources.Resource
      extended by net.sf.freecol.common.resources.ColorResource

public class ColorResource
extends Resource

A Resource wrapping a Color.

See Also:
Resource, Color

Field Summary
static java.lang.String SCHEME
           
 
Method Summary
 java.awt.Color getColor()
          Gets the Color represented by this resource.
static java.awt.Color getColor(java.lang.String colorName)
          Returns the Color identified by the given string.
 
Methods inherited from class net.sf.freecol.common.resources.Resource
getResourceLocator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEME

public static final java.lang.String SCHEME
See Also:
Constant Field Values
Method Detail

getColor

public static java.awt.Color getColor(java.lang.String colorName)
Returns the Color identified by the given string. This is either a hexadecimal integer prefixed with "0x", or the name of a field of the Color class.

Parameters:
colorName - a String value
Returns:
a Color value

getColor

public java.awt.Color getColor()
Gets the Color represented by this resource.

Returns:
The Color in it's original size.