- java.lang.Object
-
- java.awt.image.BufferStrategy
-
- java.awt.Component.BltBufferStrategy
-
-
|
Modifier and Type |
Field and Description |
|
backBuffers |
protected java.awt.image.VolatileImage[] backBuffers
The back buffers
protected java.awt.image.VolatileImage[] backBuffers
-
The back buffers
|
|
caps |
The buffering capabilities
-
The buffering capabilities
|
|
height |
|
|
validatedContents |
protected boolean validatedContents
Whether or not the drawing buffer has been recently restored from
a lost state.
protected boolean validatedContents
-
Whether or not the drawing buffer has been recently restored from
a lost state.
|
|
width |
protected int width
Size of the back buffers
protected int width
-
Size of the back buffers
|
-
|
Modifier |
Constructor and Description |
|
Component.BltBufferStrategy |
protected Component.BltBufferStrategy(int numBuffers,
BufferCapabilities caps)
Creates a new blt buffer strategy around a component
-
Creates a new blt buffer strategy around a component
- Parameters:
numBuffers - number of buffers to create, including the
front buffercaps - the capabilities of the buffers
|
-
|
Modifier and Type |
Method and Description |
|
contentsLost |
boolean contentsLost()
Returns whether the drawing buffer was lost since the last call to
getDrawGraphics .
public boolean contentsLost()
-
Description copied from class: java.awt.image.BufferStrategy
Returns whether the drawing buffer was lost since the last call to
getDrawGraphics . Since the buffers in a buffer strategy
are usually type VolatileImage , they may become lost.
For a discussion on lost buffers, see VolatileImage .
- Specified by:
contentsLost in class java.awt.image.BufferStrategy
- Returns:
- whether the drawing buffer was lost since the last call to
getDrawGraphics - See Also:
VolatileImage
|
|
contentsRestored |
boolean contentsRestored()
Returns whether the drawing buffer was recently restored from a lost
state and reinitialized to the default background color (white).
public boolean contentsRestored()
-
Description copied from class: java.awt.image.BufferStrategy
Returns whether the drawing buffer was recently restored from a lost
state and reinitialized to the default background color (white).
Since the buffers in a buffer strategy are usually type
VolatileImage , they may become lost. If a surface has
been recently restored from a lost state since the last call to
getDrawGraphics , it may require repainting.
For a discussion on lost buffers, see VolatileImage .
- Specified by:
contentsRestored in class java.awt.image.BufferStrategy
- Returns:
- whether the drawing buffer was recently restored from a lost
state and reinitialized to the default background color (white)
- See Also:
VolatileImage
|
|
createBackBuffers |
protected void createBackBuffers(int numBuffers)
Creates the back buffers
protected void createBackBuffers(int numBuffers)
-
Creates the back buffers
|
|
dispose |
void dispose()
Releases system resources currently consumed by this
BufferStrategy and
removes it from the associated Component.
|
|
getCapabilities |
Returns the BufferCapabilities for this
BufferStrategy .
-
Description copied from class: java.awt.image.BufferStrategy
Returns the BufferCapabilities for this
BufferStrategy .
- Specified by:
getCapabilities in class java.awt.image.BufferStrategy
- Returns:
- the buffering capabilities of this strategy
|
|
getDrawGraphics |
Creates a graphics context for the drawing buffer.
-
Description copied from class: java.awt.image.BufferStrategy
Creates a graphics context for the drawing buffer. This method may not
be synchronized for performance reasons; use of this method by multiple
threads should be handled at the application level. Disposal of the
graphics object obtained must be handled by the application.
- Specified by:
getDrawGraphics in class java.awt.image.BufferStrategy
- Returns:
- the draw graphics
|
|
revalidate |
protected void revalidate()
Restore the drawing buffer if it has been lost
protected void revalidate()
-
Restore the drawing buffer if it has been lost
|
|
show |
void show()
Makes the next available buffer visible.
public void show()
-
Makes the next available buffer visible.
- Specified by:
show in class java.awt.image.BufferStrategy
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by
Dulcet from the OpenJDK sources.
Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.