Color.decode

Color.decode

Class Overview | Class Members | This Package | All Packages

Syntax
public static Color decode( String nm ) throws NumberFormatException
Parameters
nm
a string that represents a color as a 24-bit integer.
Returns
the new color
Description
Converts a string to an integer and returns the specified color. This method handles string formats that are used to represent octal and hexidecimal numbers.

Exceptions
NumberFormatException if the specified string cannot be interpreted as a decimal, octal, or hexidecimal integer.
See Also
decode