public class

BufImgSurfaceManager

extends SurfaceManager
java.lang.Object
   ↳ sun.awt.image.SurfaceManager
     ↳ sun.awt.image.BufImgSurfaceManager

Class Overview

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.

Summary

Fields
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.
Public Constructors
BufImgSurfaceManager(BufferedImage bImg)
Public Methods
SurfaceData getPrimarySurfaceData()
Returns the main SurfaceData object that "owns" the pixels for this SurfaceManager.
SurfaceData restoreContents()
Called from platform-specific SurfaceData objects to attempt to auto-restore the contents of an accelerated surface that has been lost.
[Expand]
Inherited Methods
From class sun.awt.image.SurfaceManager
From class java.lang.Object

Fields

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.

Public Constructors

public BufImgSurfaceManager (BufferedImage bImg)

Public Methods

public SurfaceData 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.

public SurfaceData restoreContents ()

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