public static Color stringToColor ( String str ) { int icol = SVG_COLOR_NAMES . getInt ( str . toLowerCase ( ) ) ; if ( icol != NO_VALUE ) { return new Color ( icol , false ) ; } return colorLookupStylesheet . stringToColor ( str ) ; }
Convert a color name from SVG syntax to an AWT color object .