|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.BufferCapabilities
public class BufferCapabilities
A double-buffering capability descriptor. This class exposes details about the double-buffering algorithms used by image buffers. BufferCapabilities represents algorithms that involve at least two buffers but it can also specify so-called "multi-buffer" schemes involving more than two buffers. This class describes the capabilities of the front and back buffers as well as the results of "flipping" -- that is, what happens when an image is transferred from the back buffer to the front buffer. Flipping may or may not be supported or may be supported only in fullscreen mode. If it is not supported then "blitting" is implied -- that is, the contents of the back buffer are copied using a fast block transfer operation from the back buffer to the front buffer. The front buffer is the one that is displayed.
BufferStrategy.getCapabilities()
,
GraphicsConfiguration.getBufferCapabilities()
Nested Class Summary | |
---|---|
static class |
BufferCapabilities.FlipContents
A type-safe enumeration of buffer flipping results. |
Constructor Summary | |
---|---|
BufferCapabilities(ImageCapabilities frontCaps,
ImageCapabilities backCaps,
BufferCapabilities.FlipContents flip)
Creates a buffer capabilities object. |
Method Summary | |
---|---|
Object |
clone()
Clone this buffering capability descriptor. |
ImageCapabilities |
getBackBufferCapabilities()
Retrieve the back buffer's image capabilities. |
BufferCapabilities.FlipContents |
getFlipContents()
Retrieve the result of a flipping operation. |
ImageCapabilities |
getFrontBufferCapabilities()
Retrieve the front buffer's image capabilities. |
boolean |
isFullScreenRequired()
Returns true if flipping is only supported in fullscreen mode. |
boolean |
isMultiBufferAvailable()
Returns true if flipping can involve more than two buffers. |
boolean |
isPageFlipping()
Return whether or not flipping is supported. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferCapabilities(ImageCapabilities frontCaps, ImageCapabilities backCaps, BufferCapabilities.FlipContents flip)
frontCaps
- front buffer capabilities descriptorbackCaps
- back buffer capabilities descriptorflip
- the results of a flip operation or null if
flipping is not supported
IllegalArgumentException
- if frontCaps or backCaps is
nullMethod Detail |
---|
public ImageCapabilities getFrontBufferCapabilities()
public ImageCapabilities getBackBufferCapabilities()
public boolean isPageFlipping()
public BufferCapabilities.FlipContents getFlipContents()
FlipContents.UNDEFINED
the contents of the
back buffer are undefined after flipping.FlipContents.BACKGROUND
the contents of the
back buffer are cleared to the background color after
flipping.FlipContents.PRIOR
the back buffer contains
the pre-flipping contents of the front * buffer after
flipping.FlipContents.COPIED
the back buffer has the
same contents as the front buffer after flipping.
public boolean isFullScreenRequired()
public boolean isMultiBufferAvailable()
public Object clone()
clone
in class Object
Cloneable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |