java.awt
public class: BufferCapabilities [javadoc |
source]
java.lang.Object
java.awt.BufferCapabilities
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
DefaultBufferCapabilities
Capabilities and properties of buffers.
Also see:
- java.awt.image.BufferStrategy#getCapabilities()
- GraphicsConfiguration#getBufferCapabilities
- author:
Michael - Martak
- since:
1.4 -
| Nested Class Summary: |
|---|
| public static final class | BufferCapabilities.FlipContents | A type-safe enumeration of the possible back buffer contents after
page-flipping |
| Constructor: |
public BufferCapabilities(ImageCapabilities frontCaps,
ImageCapabilities backCaps,
BufferCapabilities.FlipContents flipContents) {
if (frontCaps == null || backCaps == null) {
throw new IllegalArgumentException(
"Image capabilities specified cannot be null");
}
this.frontCaps = frontCaps;
this.backCaps = backCaps;
this.flipContents = flipContents;
}
Creates a new object for specifying buffering capabilities Parameters:
frontCaps - the capabilities of the front buffer; cannot be
null
backCaps - the capabilities of the back and intermediate buffers;
cannot be null
flipContents - the contents of the back buffer after page-flipping,
null if page flipping is not used (implies blitting)
Throws:
IllegalArgumentException - if frontCaps or backCaps are
null
- exception:
IllegalArgumentException - if frontCaps or backCaps are
null
|
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |