APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.image

public Class BufImgVolatileSurfaceManager

extends VolatileSurfaceManager
Class Inheritance
Imports
sun.java2d.SurfaceData

This SurfaceManager variant manages an unaccelerated volatile surface. This class is created in the event that someone requested a VolatileImage to be created from a BufferedImageGraphicsConfig, which is not platform- or hardware-based, thus the resulting surface and surface manager are unaccelerated. All we do in this class is implement the abstract methods of VolatileSurfaceManager to return values that indicate that we cannot accelerate surfaces through this SurfaceManager, thus the parent class will handle things through the unaccelerated backup mechanism.

Field Summary

Inherited from sun.awt.image.VolatileSurfaceManager:
atCurrentcontextlostSurfacesdAccelsdBackupsdCurrentsdPreviousvImg

Constructor Summary

AccessConstructor and Description
public
BufImgVolatileSurfaceManager(SunVolatileImage vImg, Object context)

This constructor simply defers to the superclass since all of the real functionality of this class is implemented in VolatileSurfaceManager.

Method Summary

Modifier and TypeMethod and Description
protected SurfaceData
initAcceleratedSurface()

Implements abstract sun.awt.image.VolatileSurfaceManager.initAcceleratedSurface.

Returns null to indicate failure in creating the accelerated surface.

protected boolean
isAccelerationEnabled()

Implements abstract sun.awt.image.VolatileSurfaceManager.isAccelerationEnabled.

Returns false to indicate that this surface manager cannot accelerate the image.

Inherited from sun.awt.image.VolatileSurfaceManager:
acceleratedSurfaceLostcontentsLostdisplayChangedflushgetBackupSurfacegetCapabilitiesgetPrimarySurfaceDatainitContentsinitializeisConfigValidpaletteChangedrestoreAcceleratedSurfacerestoreContentsvalidate

Constructor Detail

BufImgVolatileSurfaceManagerback to summary
public BufImgVolatileSurfaceManager(SunVolatileImage vImg, Object context)

This constructor simply defers to the superclass since all of the real functionality of this class is implemented in VolatileSurfaceManager.

Method Detail

initAcceleratedSurfaceback to summary
protected SurfaceData initAcceleratedSurface()

Implements abstract sun.awt.image.VolatileSurfaceManager.initAcceleratedSurface.

Returns null to indicate failure in creating the accelerated surface. Note that this method should not ever be called since creation of accelerated surfaces should be preceded by calls to the above isAccelerationEnabled() method. But we need to override this method since it is abstract in our parent class.

isAccelerationEnabledback to summary
protected boolean isAccelerationEnabled()

Implements abstract sun.awt.image.VolatileSurfaceManager.isAccelerationEnabled.

Returns false to indicate that this surface manager cannot accelerate the image.