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 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
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Fields
A reference to the BufferedImage whose contents are being managed.
The default (software) surface containing the contents of the
BufferedImage.
Public Constructors
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.