FileDocCategorySizeDatePackage
BufferCapabilities.javaAPI DocAndroid 1.5 API5825Wed May 06 22:41:54 BST 2009java.awt

BufferCapabilities

public class BufferCapabilities extends Object implements Cloneable
The BufferCapabilities class represents the capabilities and other properties of the image buffers.
since
Android 1.0

Fields Summary
private final ImageCapabilities
frontBufferCapabilities
The front buffer capabilities.
private final ImageCapabilities
backBufferCapabilities
The back buffer capabilities.
private final FlipContents
flipContents
The flip contents.
Constructors Summary
public BufferCapabilities(ImageCapabilities frontBufferCapabilities, ImageCapabilities backBufferCapabilities, FlipContents flipContents)
Instantiates a new BufferCapabilities object.

param
frontBufferCapabilities the front buffer capabilities, can not be null.
param
backBufferCapabilities the the back and intermediate buffers capabilities, can not be null.
param
flipContents the back buffer contents after page flipping, null if page flipping is not used.

        if (frontBufferCapabilities == null || backBufferCapabilities == null) {
            throw new IllegalArgumentException();
        }

        this.frontBufferCapabilities = frontBufferCapabilities;
        this.backBufferCapabilities = backBufferCapabilities;
        this.flipContents = flipContents;
    
Methods Summary
public java.lang.Objectclone()
Returns a copy of the BufferCapabilities object.

return
a copy of the BufferCapabilities object.

        return new BufferCapabilities(frontBufferCapabilities, backBufferCapabilities, flipContents);
    
public java.awt.ImageCapabilitiesgetBackBufferCapabilities()
Gets the image capabilities of the back buffer.

return
the ImageCapabilities object represented capabilities of the back buffer.

        return backBufferCapabilities;
    
public java.awt.BufferCapabilities$FlipContentsgetFlipContents()
Gets the flip contents of the back buffer after page-flipping.

return
the FlipContents of the back buffer after page-flipping.

        return flipContents;
    
public java.awt.ImageCapabilitiesgetFrontBufferCapabilities()
Gets the image capabilities of the front buffer.

return
the ImageCapabilities object represented capabilities of the front buffer.

        return frontBufferCapabilities;
    
public booleanisFullScreenRequired()
Checks if page flipping is only available in full-screen mode.

return
true, if page flipping is only available in full-screen mode, false otherwise.

        return false;
    
public booleanisMultiBufferAvailable()
Checks if page flipping can be performed using more than two buffers.

return
true, if page flipping can be performed using more than two buffers, false otherwise.

        return false;
    
public booleanisPageFlipping()
Checks if the buffer strategy uses page flipping.

return
true, if the buffer strategy uses page flipping, false otherwise.

        return flipContents != null;