public static WindowTranslucency valueOf(string name)
 {
     foreach (WindowTranslucency enumInstance in WindowTranslucency.values())
     {
         if (enumInstance.nameValue == name)
         {
             return(enumInstance);
         }
     }
     throw new System.ArgumentException(name);
 }
        /// <summary>
        /// Returns whether the given level of translucency is supported by
        /// this graphics device.
        /// </summary>
        /// <param name="translucencyKind"> a kind of translucency support </param>
        /// <returns> whether the given translucency kind is supported
        ///
        /// @since 1.7 </returns>
        public virtual bool IsWindowTranslucencySupported(WindowTranslucency translucencyKind)
        {
            switch (translucencyKind.InnerEnumValue())
            {
            case java.awt.GraphicsDevice.WindowTranslucency.InnerEnum.PERPIXEL_TRANSPARENT:
                return(WindowShapingSupported);

            case java.awt.GraphicsDevice.WindowTranslucency.InnerEnum.TRANSLUCENT:
                return(WindowOpacitySupported);

            case java.awt.GraphicsDevice.WindowTranslucency.InnerEnum.PERPIXEL_TRANSLUCENT:
                return(WindowPerpixelTranslucencySupported);
            }
            return(false);
        }