| protected class java.awt Component.FlipBufferStrategy
|
Java SE 6 |
Canvas or Window.
| since | 1.4 |
| See also | java.awt.Canvas, java.awt.Window, java.awt.image.BufferStrategy |
| Fields | |
|---|---|
| protected int | numBuffers The number of buffers |
| protected BufferCapabilities | caps The buffering capabilities |
| protected Image | drawBuffer The drawing buffer |
| protected VolatileImage | drawVBuffer The drawing buffer as a volatile image |
| protected boolean | validatedContents Whether or not the drawing buffer has been recently restored from a lost state. |
| Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| protected | Component.FlipBufferStrategy(int numBuffers, BufferCapabilities caps) throws AWTException Details
Creates a new flipping buffer strategy for this component.
The component must be a Canvas or Window.
| ||||||||||
| Methods | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public boolean | contentsLost() Details
| ||||||||||||
| public boolean | contentsRestored() Details
| ||||||||||||
| protected void | createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException Details
Creates one or more complex, flipping buffers with the given
capabilities.
| ||||||||||||
| protected void | destroyBuffers() Destroys the buffers created through this object | ||||||||||||
| 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.
| ||||||||||||
| protected void | flip(BufferCapabilities.FlipContents flipAction) Details
Flipping moves the contents of the back buffer to the front buffer,
either by copying or by moving the video pointer.
| ||||||||||||
| protected void | revalidate() Restore the drawing buffer if it has been lost | ||||||||||||
| public void | show() Makes the next available buffer visible by either blitting or flipping. | ||||||||||||
| Properties | |||||
|---|---|---|---|---|---|
| protected Image | getBackBuffer() Details
| ||||
| public BufferCapabilities | getCapabilities() Details
| ||||
| public Graphics | getDrawGraphics() Details
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|