protected class java.awt
Component.BltBufferStrategy


Show All Login
Java SE 6
  
Extends: BufferStrategy
Contained within: Component
Details
Inner class for blitting offscreen surfaces to a component.
since1.4

Fields
protected BufferCapabilities caps
The buffering capabilities
protected VolatileImage[] backBuffers
The back buffers
protected boolean validatedContents
Whether or not the drawing buffer has been recently restored from a lost state.
protected int width
Size of the back buffers
protected int height

Constructors
protected Component.BltBufferStrategy(int numBuffers, BufferCapabilities caps) Details
Creates a new blt buffer strategy around a component
numBuffersnumber of buffers to create, including the front buffer
capsthe capabilities of the buffers

Methods
public boolean contentsLost() Details
returnwhether the drawing buffer was lost since the last call to getDrawGraphics
public boolean contentsRestored() Details
returnwhether the drawing buffer was recently restored from a lost state and reinitialized to the default background color (white)
protected void createBackBuffers(int numBuffers)
Creates the back buffers
public void dispose() Details
Releases system resources currently consumed by this BufferStrategy and removes it from the associated Component. After invoking this method, getBufferStrategy will return null. Trying to use a BufferStrategy after it has been disposed will result in undefined behavior.
since1.6
protected void revalidate()
Restore the drawing buffer if it has been lost
public void show()
Makes the next available buffer visible.

Properties
public BufferCapabilities getCapabilities() Details
returnthe buffering capabilities of this strategy
public Graphics getDrawGraphics() Details
returnthe draw graphics