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

public Class BufImgSurfaceManager

extends SurfaceManager
Class Inheritance
Imports
java.awt.GraphicsConfiguration, .GraphicsEnvironment, .ImageCapabilities, java.awt.image.BufferedImage, sun.java2d.SurfaceData, sun.java2d.loops.CompositeType

This SurfaceManager variant manages the default (software) surface of a BufferedImage. All rendering to the image will use the software surface as the destination. This is one of the more minimalist implementations of SurfaceManager.

Field Summary

Modifier and TypeField and Description
protected BufferedImage
bImg

A reference to the BufferedImage whose contents are being managed.

protected SurfaceData
sdDefault

The default (software) surface containing the contents of the BufferedImage.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SurfaceData
getPrimarySurfaceData()

Implements abstract sun.awt.image.SurfaceManager.getPrimarySurfaceData.

Returns the main SurfaceData object that "owns" the pixels for this SurfaceManager.

public SurfaceData
restoreContents()

Implements abstract sun.awt.image.SurfaceManager.restoreContents.

Called from platform-specific SurfaceData objects to attempt to auto-restore the contents of an accelerated surface that has been lost.

Inherited from sun.awt.image.SurfaceManager:
acceleratedSurfaceLostflushflushgetCapabilitiesgetImageScaleXgetImageScaleYgetManagersetAccelerationPrioritysetImageAccessorsetManager

Field Detail

bImgback to summary
protected BufferedImage bImg

A reference to the BufferedImage whose contents are being managed.

sdDefaultback to summary
protected SurfaceData sdDefault

The default (software) surface containing the contents of the BufferedImage.

Constructor Detail

BufImgSurfaceManagerback to summary
public BufImgSurfaceManager(BufferedImage bImg)

Method Detail

getPrimarySurfaceDataback to summary
public SurfaceData getPrimarySurfaceData()

Implements abstract sun.awt.image.SurfaceManager.getPrimarySurfaceData.

Doc from sun.awt.image.SurfaceManager.getPrimarySurfaceData.

Returns the main SurfaceData object that "owns" the pixels for this SurfaceManager. This SurfaceData is used as the destination surface in a rendering operation and is the most authoritative storage for the current state of the pixels, though other versions might be cached in other locations for efficiency.

restoreContentsback to summary
public SurfaceData restoreContents()

Implements abstract sun.awt.image.SurfaceManager.restoreContents.

Called from platform-specific SurfaceData objects to attempt to auto-restore the contents of an accelerated surface that has been lost.