java.awt
protected class Component.BltBufferStrategy extends BufferStrategy
| Field Summary | |
|---|---|
| protected VolatileImage[] | backBuffers
The back buffers used in this strategy. |
| protected BufferCapabilities | caps
The capabilities of the image buffer. |
| protected int | height
The height of the back buffers. |
| protected boolean | validatedContents
Whether or not the image buffer resources are allocated and
ready to be drawn into. |
| protected int | width
The width of the back buffers. |
| Constructor Summary | |
|---|---|
| protected | BltBufferStrategy(int numBuffers, BufferCapabilities caps)
Creates a blitting buffer strategy.
|
| Method Summary | |
|---|---|
| boolean | contentsLost()
Returns whether or not the image buffer resources have been
lost.
|
| boolean | contentsRestored()
Returns whether or not the image buffer resources have been
restored.
|
| protected void | createBackBuffers(int numBuffers)
Initializes the backBuffers field with an array of numBuffers
VolatileImages.
|
| BufferCapabilities | getCapabilities()
Retrieves the capabilities of this buffer strategy.
|
| Graphics | getDrawGraphics()
Retrieves a graphics object that can be used to draw into this
strategy's image buffer.
|
| protected void | revalidate()
Re-create the image buffer resources if they've been lost. |
| void | show()
Bring the contents of the back buffer to the front buffer. |
Parameters: numBuffers the number of buffers, including the front buffer caps the capabilities of this strategy
Returns: true if the resources have been lost, false otherwise
Returns: true if the resources have been restored, false otherwise
Parameters: numBuffers the number of backbuffers to create
Returns: the capabilities of this buffer strategy
Returns: a graphics object