本文整理汇总了Java中sun.java2d.x11.X11SurfaceData类的典型用法代码示例。如果您正苦于以下问题:Java X11SurfaceData类的具体用法?Java X11SurfaceData怎么用?Java X11SurfaceData使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
X11SurfaceData类属于sun.java2d.x11包,在下文中一共展示了X11SurfaceData类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSurfaceType
import sun.java2d.x11.X11SurfaceData; //导入依赖的package包/类
public synchronized SurfaceType getSurfaceType() {
if (surfaceType != null) {
return surfaceType;
}
surfaceType = X11SurfaceData.getSurfaceType(this, Transparency.OPAQUE);
return surfaceType;
}
示例2: drawGlyphList
import sun.java2d.x11.X11SurfaceData; //导入依赖的package包/类
protected void drawGlyphList(SunGraphics2D sg2d, GlyphList gl) {
SunToolkit.awtLock();
try {
X11SurfaceData x11sd = (X11SurfaceData)sg2d.surfaceData;
Region clip = sg2d.getCompClip();
long xgc = x11sd.getRenderGC(clip, SunGraphics2D.COMP_ISCOPY,
null, sg2d.pixel);
doDrawGlyphList(x11sd.getNativeOps(), xgc, clip, gl);
} finally {
SunToolkit.awtUnlock();
}
}
示例3: createSurfaceData
import sun.java2d.x11.X11SurfaceData; //导入依赖的package包/类
/**
* Creates a new SurfaceData that will be associated with the given
* X11ComponentPeer.
*/
public SurfaceData createSurfaceData(X11ComponentPeer peer) {
return X11SurfaceData.createData(peer);
}