java.awt
Class ImageCapabilities

java.lang.Object
  extended by java.awt.ImageCapabilities
All Implemented Interfaces:
Cloneable

public class ImageCapabilities
extends Object
implements Cloneable

This class represents the capabilities of an image buffer. An image buffer may be backed by accelerated graphics resources. Those resources may or may not be volatile. This class is used to describe these image buffer characteristics.


Constructor Summary
ImageCapabilities(boolean accelerated)
          Create a new image capability descriptor.
 
Method Summary
 Object clone()
          Clone this image capability descriptor.
 boolean isAccelerated()
          Returns whether or not the image buffer uses accelerated graphics resources.
 boolean isTrueVolatile()
          Returns whether or not the image buffer's resources are volatile, meaning that they can be reclaimed by the graphics system at any time.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageCapabilities

public ImageCapabilities(boolean accelerated)
Create a new image capability descriptor.

Parameters:
accelerated - true if the image buffer uses accelerated graphics resources
Method Detail

isAccelerated

public boolean isAccelerated()
Returns whether or not the image buffer uses accelerated graphics resources.

Returns:
true if the image buffer uses accelerated graphics resources; false otherwise

isTrueVolatile

public boolean isTrueVolatile()
Returns whether or not the image buffer's resources are volatile, meaning that they can be reclaimed by the graphics system at any time.

Returns:
true if the image buffer's resources are volatile; false otherwise

clone

public Object clone()
Clone this image capability descriptor.

Overrides:
clone in class Object
Returns:
a clone of this image capability descriptor
See Also:
Cloneable