java.awt.image.BufferStrategy#getCapabilities() , GraphicsConfiguration#getBufferCapabilities
| Modifier and Type | Class and Description |
|---|---|
| public static class | BufferCapabilities.
A type-safe enumeration of the possible back buffer contents after page-flipping |
| Modifier and Type | Field and Description |
|---|---|
| private ImageCapabilities | |
| private BufferCapabilities. | |
| private ImageCapabilities |
| Access | Constructor and Description |
|---|---|
| public | BufferCapabilities(ImageCapabilities
the capabilities of the front buffer; cannot be
frontCaps, ImageCapabilities nullthe capabilities of the back and intermediate buffers;
cannot be backCaps, BufferCapabilities.nullthe contents of the back buffer after page-flipping,
flipContentsnull if page flipping is not used (implies blitting)Creates a new object for specifying buffering capabilities |
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: a copy of this BufferCapabilities object.Overrides java. Creates and returns a copy of this object. |
| public ImageCapabilities | Returns: the image capabilities of all back buffers (intermediate buffers are considered back buffers)Returns the image capabilities of all back buffers (intermediate buffers are considered back buffers). |
| public BufferCapabilities. | Returns: the resulting contents of the back buffer after page-flippingReturns the resulting contents of the back buffer after page-flipping. |
| public ImageCapabilities | Returns: the image capabilities of the front (displayed) bufferReturns the image capabilities of the front (displayed) buffer. |
| public boolean | Returns: whether page flipping is only available in full-screen modeReturns whether page flipping is only available in full-screen mode. |
| public boolean | Returns: whether or not page flipping can be performed using more than two buffersReturns whether or not page flipping can be performed using more than two buffers (one or more intermediate buffers as well as the front and back buffer). |
| public boolean | Returns: whether or not the buffer strategy uses page flippingReturns whether or not the buffer strategy uses page flipping. |
| backCaps | back to summary |
|---|---|
| private ImageCapabilities backCaps | |
| flipContents | back to summary |
|---|---|
| private BufferCapabilities. | |
| frontCaps | back to summary |
|---|---|
| private ImageCapabilities frontCaps | |
| BufferCapabilities | back to summary |
|---|---|
| public BufferCapabilities(ImageCapabilities frontCaps, ImageCapabilities backCaps, BufferCapabilities. Creates a new object for specifying buffering capabilities
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getBackBufferCapabilities | back to summary |
|---|---|
| public ImageCapabilities getBackBufferCapabilities() Returns the image capabilities of all back buffers (intermediate buffers are considered back buffers).
| |
| getFlipContents | back to summary |
|---|---|
| public BufferCapabilities. Returns the resulting contents of the back buffer after page-flipping.
This value is
| |
| getFrontBufferCapabilities | back to summary |
|---|---|
| public ImageCapabilities getFrontBufferCapabilities() Returns the image capabilities of the front (displayed) buffer.
| |
| isFullScreenRequired | back to summary |
|---|---|
| public boolean isFullScreenRequired() Returns whether page flipping is only available in full-screen mode. If this
is
| |
| isMultiBufferAvailable | back to summary |
|---|---|
| public boolean isMultiBufferAvailable() Returns whether or not page flipping can be performed using more than two buffers (one or more intermediate buffers as well as the front and back buffer).
| |
| isPageFlipping | back to summary |
|---|---|
| public boolean isPageFlipping() Returns whether or not the buffer strategy uses page flipping.
A set of buffers that uses page flipping
can swap the contents internally between the front buffer and one or
more back buffers by switching the video pointer (or by copying memory
internally). A non-flipping set of
buffers uses blitting to copy the contents from one buffer to
another; when this is the case,
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final BufferCapabilities. | BACKGROUND
When flip contents are |
| public static final BufferCapabilities. | COPIED
When flip contents are |
| private static int | |
| private static int | |
| private static int | |
| private static int | |
| private static final String[] | |
| public static final BufferCapabilities. | PRIOR
When flip contents are |
| public static final BufferCapabilities. | UNDEFINED
When flip contents are |
| Access | Constructor and Description |
|---|---|
| private |
| BACKGROUND | back to summary |
|---|---|
| public static final BufferCapabilities. When flip contents are
| |
| COPIED | back to summary |
|---|---|
| public static final BufferCapabilities. When flip contents are
| |
| I_BACKGROUND | back to summary |
|---|---|
| private static int I_BACKGROUND | |
| I_COPIED | back to summary |
|---|---|
| private static int I_COPIED | |
| I_PRIOR | back to summary |
|---|---|
| private static int I_PRIOR | |
| I_UNDEFINED | back to summary |
|---|---|
| private static int I_UNDEFINED | |
| NAMES | back to summary |
|---|---|
| private static final String[] NAMES | |
| PRIOR | back to summary |
|---|---|
| public static final BufferCapabilities. When flip contents are
| |
| UNDEFINED | back to summary |
|---|---|
| public static final BufferCapabilities. When flip contents are
| |
| FlipContents | back to summary |
|---|---|
| private FlipContents(int type) | |