本文整理汇总了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();
}
});
}
示例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();
}
示例3: displayChanged
import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
public static void displayChanged() {
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
((Win32GraphicsEnvironment)GraphicsEnvironment
.getLocalGraphicsEnvironment())
.displayChanged();
}
});
}
示例4: displayChanged
import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
static public void displayChanged() {
EventQueue.invokeLater(new Runnable() {
public void run() {
((Win32GraphicsEnvironment)GraphicsEnvironment
.getLocalGraphicsEnvironment())
.displayChanged();
}
});
}
示例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;
}
});
}
示例6: getScreenResolution
import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
@Override
public int getScreenResolution() {
Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment)
GraphicsEnvironment.getLocalGraphicsEnvironment();
return ge.getXResolution();
}
示例7: paletteChanged
import sun.awt.Win32GraphicsEnvironment; //导入依赖的package包/类
static void paletteChanged() {
((Win32GraphicsEnvironment)GraphicsEnvironment
.getLocalGraphicsEnvironment())
.paletteChanged();
}