Package sun.awt

Examples of sun.awt.Win32GraphicsDevice$Win32FSWindowAdapter


    // Multi-buffering

    private boolean isFullScreenExclusive() {
        GraphicsConfiguration gc = getGraphicsConfiguration();
        Win32GraphicsDevice gd = (Win32GraphicsDevice)gc.getDevice();
        Component target = (Component)this.target;
        while (target != null && !(target instanceof Window)) {
            target = target.getParent();
        }
        return (target == gd.getFullScreenWindow()) && gd.isDDEnabledOnDevice();
    }
View Full Code Here


     */
    public void displayChanged() {
        int scrn = getScreenImOn();

        // get current GD
        Win32GraphicsDevice oldDev = (Win32GraphicsDevice)winGraphicsConfig
                                     .getDevice();

        // get new GD
        Win32GraphicsDevice newDev = (Win32GraphicsDevice)GraphicsEnvironment
            .getLocalGraphicsEnvironment()
            .getScreenDevices()[scrn];

        // Set winGraphicsConfig to the default GC for the monitor this Window
        // is now mostly on.
        winGraphicsConfig = (Win32GraphicsConfig)newDev
                            .getDefaultConfiguration();

        // if on a different display, take off old GD and put on new GD
        if (oldDev != newDev) {
            oldDev.removeDisplayChangedListener(this);
            newDev.addDisplayChangedListener(this);
        }
        super.displayChanged();
    }
View Full Code Here

         * values is not worth the effort and time.  We should eventually
         * accelerate transparent images the same way we do translucent
         * ones; through translucent textures (transparent pixels would
         * simply have an alpha of 0).
         */
        Win32GraphicsDevice gd =
            (Win32GraphicsDevice)vImg.getGraphicsConfig().getDevice();
        accelerationEnabled =
            WindowsFlags.isDDEnabled() &&
            WindowsFlags.isDDOffscreenEnabled() &&
            (vImg.getTransparency() == Transparency.OPAQUE);
View Full Code Here

TOP

Related Classes of sun.awt.Win32GraphicsDevice$Win32FSWindowAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.