private static RenderQuality parseRenderQuality ( String val ) { switch ( val ) { case "auto" : return RenderQuality . auto ; case "optimizeQuality" : return RenderQuality . optimizeQuality ; case "optimizeSpeed" : return RenderQuality . optimizeSpeed ; default : return null ; } }
Parse a rendering quality property