import java.awt.Color; //导入方法依赖的package包/类
/**
* Searches for a color with a given name or key, given as a string. The
* color is searched using the following criteria:
*
*
If the name is one of the keys in getColorMap() then the* corresponding key is returned;
*
Otherwise, if the name is a system property (recognised by* Color.getColor(String)) then the corresponding color is
* returned;
*
Otherwise, if the name is a color key recognised by* Color.decode(String)) then the corresponding color is
* returned;
*
Otherwise, if the name is a space-separated sequence of three or* four byte values standing for the red, green and blue components, and
* optionally an alpha value, then the corresponding color is returned using
* the appropriate Color method;
*