FileDocCategorySizeDatePackage
ImageCapabilities.javaAPI DocJava SE 5 API1860Fri Aug 26 14:56:44 BST 2005java.awt

ImageCapabilities

public class ImageCapabilities extends Object implements Cloneable
Capabilities and properties of images.
author
Michael Martak
since
1.4

Fields Summary
private boolean
accelerated
Constructors Summary
public ImageCapabilities(boolean accelerated)
Creates a new object for specifying image capabilities.

param
accelerated whether or not an accelerated image is desired

    
                           
       
        this.accelerated = accelerated;
    
Methods Summary
public java.lang.Objectclone()

return
a copy of this ImageCapabilities object.

        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            // Since we implement Cloneable, this should never happen
            throw new InternalError();
        }
    
public booleanisAccelerated()
Returns true if the object whose capabilities are encapsulated in this ImageCapabilities can be or is accelerated.

return
whether or not an image can be, or is, accelerated. There are various platform-specific ways to accelerate an image, including pixmaps, VRAM, AGP. This is the general acceleration method (as opposed to residing in system memory).

        return accelerated;
    
public booleanisTrueVolatile()
Returns true if the VolatileImage described by this ImageCapabilities can lose its surfaces.

return
whether or not a volatile image is subject to losing its surfaces at the whim of the operating system.

        return false;