public class BufferCapabilities extends Object implements Cloneable
BufferStrategy.getCapabilities()
,
GraphicsConfiguration.getBufferCapabilities()
Modifier and Type | Class and Description |
---|---|
static class |
BufferCapabilities.FlipContents
A type-safe enumeration of the possible back buffer contents after
page-flipping
|
Constructor and Description |
---|
BufferCapabilities(ImageCapabilities frontCaps,
ImageCapabilities backCaps,
BufferCapabilities.FlipContents flipContents)
Creates a new object for specifying buffering capabilities
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Answers a new instance of the same class as the receiver,
whose slots have been filled in with the values in the
slots of the receiver.
|
ImageCapabilities |
getBackBufferCapabilities() |
BufferCapabilities.FlipContents |
getFlipContents() |
ImageCapabilities |
getFrontBufferCapabilities() |
boolean |
isFullScreenRequired() |
boolean |
isMultiBufferAvailable() |
boolean |
isPageFlipping() |
public BufferCapabilities(ImageCapabilities frontCaps, ImageCapabilities backCaps, BufferCapabilities.FlipContents flipContents)
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)IllegalArgumentException
- if frontCaps or backCaps are
null
public ImageCapabilities getFrontBufferCapabilities()
public ImageCapabilities getBackBufferCapabilities()
public boolean isPageFlipping()
getFlipContents
returns
null
public BufferCapabilities.FlipContents getFlipContents()
null
when the isPageFlipping
returns false
, implying blitting. It can be one of
FlipContents.UNDEFINED
(the assumed default), FlipContents.BACKGROUND
,
FlipContents.PRIOR
, or
FlipContents.COPIED
.isPageFlipping()
,
BufferCapabilities.FlipContents.UNDEFINED
,
BufferCapabilities.FlipContents.BACKGROUND
,
BufferCapabilities.FlipContents.PRIOR
,
BufferCapabilities.FlipContents.COPIED
public boolean isFullScreenRequired()
true
, full-screen exclusive mode is required for
page-flipping.isPageFlipping()
,
GraphicsDevice.setFullScreenWindow(java.awt.Window)
public boolean isMultiBufferAvailable()
isPageFlipping()
public Object clone()
Object
Classes which wish to support cloning must specify that they implement the Cloneable interface, since the native implementation checks for this.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.