Class OfficialApi

  • All Implemented Interfaces:
    ITranslucentAndShapedWindowApi

    public class OfficialApi
    extends java.lang.Object
    implements ITranslucentAndShapedWindowApi
    Wrapper around the official API for creating translucent and shaped windows. As of JRE 7 there is official support for 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 java.awt.GraphicsDevice$WindowTranslucency
      • 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
      • isTranslucencyCapable

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

      • OfficialApi

        public OfficialApi()