sun.awt.Win32GraphicsEnvironment Java Examples

The following examples show how to use sun.awt.Win32GraphicsEnvironment. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WEmbeddedFramePeer.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #2
Source File: WEmbeddedFramePeer.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #3
Source File: WEmbeddedFramePeer.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #4
Source File: WEmbeddedFramePeer.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #5
Source File: WToolkit.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #6
Source File: WEmbeddedFramePeer.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #7
Source File: WToolkit.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #8
Source File: WEmbeddedFramePeer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #9
Source File: WToolkit.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #10
Source File: WEmbeddedFramePeer.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #11
Source File: WToolkit.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #12
Source File: WToolkit.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #13
Source File: WToolkit.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #14
Source File: WEmbeddedFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #15
Source File: WToolkit.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #16
Source File: WEmbeddedFramePeer.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #17
Source File: WToolkit.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #18
Source File: WEmbeddedFramePeer.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #19
Source File: Win32FontManager.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void registerJREFontsForPrinting() {
    final String pathName;
    synchronized (Win32GraphicsEnvironment.class) {
        GraphicsEnvironment.getLocalGraphicsEnvironment();
        if (fontsForPrinting == null) {
            return;
        }
        pathName = fontsForPrinting;
        fontsForPrinting = null;
    }
    java.security.AccessController.doPrivileged(
        new java.security.PrivilegedAction() {
            public Object run() {
                File f1 = new File(pathName);
                String[] ls = f1.list(SunFontManager.getInstance().
                        getTrueTypeFilter());
                if (ls == null) {
                    return null;
                }
                for (int i=0; i <ls.length; i++ ) {
                    File fontFile = new File(f1, ls[i]);
                    registerFontWithPlatform(fontFile.getAbsolutePath());
                }
                return null;
            }
     });
}
 
Example #20
Source File: WEmbeddedFramePeer.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #21
Source File: WToolkit.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
Example #22
Source File: Win32FontManager.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static void registerJREFontsForPrinting() {
    final String pathName;
    synchronized (Win32GraphicsEnvironment.class) {
        GraphicsEnvironment.getLocalGraphicsEnvironment();
        if (fontsForPrinting == null) {
            return;
        }
        pathName = fontsForPrinting;
        fontsForPrinting = null;
    }
    java.security.AccessController.doPrivileged(
        new java.security.PrivilegedAction() {
            public Object run() {
                File f1 = new File(pathName);
                String[] ls = f1.list(SunFontManager.getInstance().
                        getTrueTypeFilter());
                if (ls == null) {
                    return null;
                }
                for (int i=0; i <ls.length; i++ ) {
                    File fontFile = new File(f1, ls[i]);
                    registerFontWithPlatform(fontFile.getAbsolutePath());
                }
                return null;
            }
     });
}
 
Example #23
Source File: WEmbeddedFramePeer.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #24
Source File: WEmbeddedFramePeer.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public boolean isAccelCapable() {
    // REMIND: Temp workaround for issues with using HW acceleration
    // in the browser on Vista when DWM is enabled
    // Note: isDWMCompositionEnabled is only relevant on Vista, returns
    // false on other systems.
    return !Win32GraphicsEnvironment.isDWMCompositionEnabled();
}
 
Example #25
Source File: WToolkit.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
 
Example #26
Source File: WToolkit.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
 
Example #27
Source File: WToolkit.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
 
Example #28
Source File: WToolkit.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
 
Example #29
Source File: WToolkit.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
 
Example #30
Source File: WToolkit.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}