本文整理汇总了Java中java.awt.BufferCapabilities.getBackBufferCapabilities方法的典型用法代码示例。如果您正苦于以下问题:Java BufferCapabilities.getBackBufferCapabilities方法的具体用法?Java BufferCapabilities.getBackBufferCapabilities怎么用?Java BufferCapabilities.getBackBufferCapabilities使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.awt.BufferCapabilities
的用法示例。
在下文中一共展示了BufferCapabilities.getBackBufferCapabilities方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ExtendedBufferCapabilities
import java.awt.BufferCapabilities; //导入方法依赖的package包/类
/**
* Creates an ExtendedBufferCapabilities object with front/back/flip caps
* from the passed cap, and VSYNC_DEFAULT v-sync mode.
*/
public ExtendedBufferCapabilities(BufferCapabilities caps) {
super(caps.getFrontBufferCapabilities(),
caps.getBackBufferCapabilities(),
caps.getFlipContents());
this.vsync = VSyncType.VSYNC_DEFAULT;
}
示例2: createBuffers
import java.awt.BufferCapabilities; //导入方法依赖的package包/类
public void createBuffers (int numBuffers, BufferCapabilities caps)
throws AWTException
{
// numBuffers == 2 implies double-buffering, meaning one back
// buffer and one front buffer.
if (numBuffers == 2)
backBuffer = new GtkVolatileImage(this, awtComponent.getWidth(),
awtComponent.getHeight(),
caps.getBackBufferCapabilities());
else
throw new AWTException("GtkComponentPeer.createBuffers:"
+ " multi-buffering not supported");
this.caps = caps;
}