void
|
activateDisplayListener()
This method should be called from subclasses which create
cached SurfaceData objects that depend on the current
properties of the display.
|
void
|
displayChanged()
Invoked when the display mode has changed.
|
boolean
|
flush(boolean deaccelerated)
Flush all cached resources as per the FlushableCacheData interface.
|
synchronized
void
|
flush()
Actively flushes (drops and invalidates) the cached surface
so that it can be reclaimed quickly.
|
StateTracker
|
getRetryTracker(SurfaceData srcData)
If the subclass is unable to validate or create a cached
SurfaceData then this method will be used to get a
StateTracker object that will indicate when to attempt
to validate the surface again.
|
void
|
invalidate()
Sets the valid state to false so that the next time this
proxy is fetched to generate a replacement SurfaceData,
the code in SurfaceData knows to replace the proxy first.
|
boolean
|
isAccelerated()
Returns true iff this SurfaceData proxy is still valid
and if it has a currently cached replacement that is also
valid and current.
|
static
boolean
|
isCachingAllowed()
|
abstract
boolean
|
isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)
Determine if an alternate form for the srcData is needed
and appropriate from the given operational parameters.
|
boolean
|
isValid()
Returns true iff this SurfaceData proxy is still the best
way to control caching of the given source on the given
destination.
|
void
|
paletteChanged()
Invoked when the palette has changed.
|
SurfaceData
|
replaceData(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)
This method attempts to replace the srcData with a cached version.
|
void
|
updateSurfaceData(SurfaceData srcData, SurfaceData dstData, int w, int h)
This is the default implementation for updating the cached
SurfaceData from the source (primary) SurfaceData.
|
void
|
updateSurfaceDataBg(SurfaceData srcData, SurfaceData dstData, int w, int h, Color bgColor)
This is an alternate implementation for updating the cached
SurfaceData from the source (primary) SurfaceData using a
background color for transparent pixels.
|
abstract
SurfaceData
|
validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)
Construct an alternate form of the given SurfaceData.
|