Java 类sun.awt.Win32GraphicsEnvironment 实例源码

项目:OpenJSharp    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:OpenJSharp    文件:WEmbeddedFramePeer.java   
@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();
}
项目:jdk8u-jdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:jdk8u-jdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:openjdk-jdk10    文件:WToolkit.java   
public static void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:openjdk-jdk10    文件:WEmbeddedFramePeer.java   
@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();
}
项目:openjdk9    文件:WToolkit.java   
public static void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:openjdk9    文件:WEmbeddedFramePeer.java   
@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();
}
项目:jdk8u_jdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:jdk8u_jdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:lookaside_java-1.8.0-openjdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:lookaside_java-1.8.0-openjdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:infobip-open-jdk-8    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:jdk8u-dev-jdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:jdk8u-dev-jdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:jdk7-jdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:jdk7-jdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:jdk7-jdk    文件:Win32FontManager.java   
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;
            }
     });
}
项目:openjdk-source-code-learn    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:openjdk-source-code-learn    文件:WEmbeddedFramePeer.java   
@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();
}
项目:openjdk-source-code-learn    文件:Win32FontManager.java   
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;
            }
     });
}
项目:OLD-OpenJDK8    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:OLD-OpenJDK8    文件:WEmbeddedFramePeer.java   
@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();
}
项目:OLD-OpenJDK8    文件:Win32FontManager.java   
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;
            }
     });
}
项目:openjdk-jdk7u-jdk    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:openjdk-jdk7u-jdk    文件:WEmbeddedFramePeer.java   
@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();
}
项目:openjdk-jdk7u-jdk    文件:Win32FontManager.java   
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;
            }
     });
}
项目:openjdk-icedtea7    文件:WToolkit.java   
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
项目:openjdk-icedtea7    文件:WEmbeddedFramePeer.java   
@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();
}
项目:openjdk-icedtea7    文件:Win32FontManager.java   
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;
            }
     });
}
项目:OpenJSharp    文件:WToolkit.java   
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
项目:OpenJSharp    文件:WToolkit.java   
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
项目:jdk8u-jdk    文件:WToolkit.java   
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
项目:jdk8u-jdk    文件:WToolkit.java   
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
项目:openjdk-jdk10    文件:WToolkit.java   
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
项目:openjdk-jdk10    文件:WToolkit.java   
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
项目:openjdk9    文件:WToolkit.java   
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
项目:openjdk9    文件:WToolkit.java   
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
项目:jdk8u_jdk    文件:WToolkit.java   
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
项目:jdk8u_jdk    文件:WToolkit.java   
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}