public static java.awt.Color | lookup(java.lang.String c)Lookup a given string
if (c == null)
return null;
if (c.charAt(0) == '#") // hex encoding
return Color.decode(c);
for (int i=0; i<map.length; i++)
if (c.equalsIgnoreCase(map[i].color))
return map[i].jColor;
return null;
|