当前位置: 首页>>代码示例>>Java>>正文


Java Win32GraphicsEnvironment类代码示例

本文整理汇总了Java中sun.awt.Win32GraphicsEnvironment的典型用法代码示例。如果您正苦于以下问题:Java Win32GraphicsEnvironment类的具体用法?Java Win32GraphicsEnvironment怎么用?Java Win32GraphicsEnvironment使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Win32GraphicsEnvironment类属于sun.awt包,在下文中一共展示了Win32GraphicsEnvironment类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: displayChanged

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:11,代码来源:WToolkit.java

示例2: isAccelCapable

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
@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();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:WEmbeddedFramePeer.java

示例3: displayChanged

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
public static void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        @Override
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:11,代码来源:WToolkit.java

示例4: displayChanged

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
static public void displayChanged() {
    EventQueue.invokeLater(new Runnable() {
        public void run() {
            ((Win32GraphicsEnvironment)GraphicsEnvironment
            .getLocalGraphicsEnvironment())
            .displayChanged();
        }
    });
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:10,代码来源:WToolkit.java

示例5: registerJREFontsForPrinting

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
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;
            }
     });
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:28,代码来源:Win32FontManager.java

示例6: getScreenResolution

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
@Override
public int getScreenResolution() {
    Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
        GraphicsEnvironment.getLocalGraphicsEnvironment();
    return ge.getXResolution();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:7,代码来源:WToolkit.java

示例7: paletteChanged

import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
static void paletteChanged() {
    ((Win32GraphicsEnvironment)GraphicsEnvironment
    .getLocalGraphicsEnvironment())
    .paletteChanged();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:6,代码来源:WToolkit.java


注:本文中的sun.awt.Win32GraphicsEnvironment类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。