Class PrivateApi

  • All Implemented Interfaces:
    ITranslucentAndShapedWindowApi

    public class PrivateApi
    extends java.lang.Object
    implements ITranslucentAndShapedWindowApi
    Wrapper around com.sun.awt.AWTUtilities API for Translucent and Shaped Window support.
    As of JRE 6 update 10 there is a private API for creating these types of windows.
    You shouldn't use this class directly. Instead use TranslucentAndShapedWindowApiFactory to get the correct instance depending on your system JRE. For more details see http://download.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html#6u10
    Note: Only Sun/Oracle JREs support sun.awt.AWTUtilities. Other JDK/JREs (example OpenJDK) do not support the private API
    • Field Detail

      • isSupported

        private static boolean isSupported
        true if we support this API
      • PERPIXEL_TRANSPARENT

        private static java.lang.Object PERPIXEL_TRANSPARENT
        enum constants from com.sun.awt.AWTUtilities$Translucency
      • TRANSLUCENT

        private static java.lang.Object TRANSLUCENT
      • PERPIXEL_TRANSLUCENT

        private static java.lang.Object PERPIXEL_TRANSLUCENT
      • isTranslucencySupported

        private static java.lang.reflect.Method isTranslucencySupported
      • setWindowOpacity

        private static java.lang.reflect.Method setWindowOpacity
      • getWindowOpacity

        private static java.lang.reflect.Method getWindowOpacity
      • setWindowShape

        private static java.lang.reflect.Method setWindowShape
      • getWindowShape

        private static java.lang.reflect.Method getWindowShape
      • setWindowOpaque

        private static java.lang.reflect.Method setWindowOpaque
      • isWindowOpaque

        private static java.lang.reflect.Method isWindowOpaque
      • isTranslucencyCapable

        private static java.lang.reflect.Method isTranslucencyCapable
    • Constructor Detail

      • PrivateApi

        public PrivateApi()