public abstract class IlvTileCache extends Object implements IlvPersistentObject
IlvTileCache
object releases the cached tiles to
free memory when necessary.IlvTileController
,
Serialized FormModifier | Constructor and Description |
---|---|
protected |
IlvTileCache()
Initializes an instance of a tile cache.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
controllerDisposed(IlvTileController controller)
This method is called when a controller stops its activity.
|
protected void |
releaseTile(IlvTile tile)
Releases a tile.
|
abstract void |
tileAboutToLoad(IlvTile tile)
This method is called by a tile controller each time
a tile is about to be loaded.
|
abstract void |
tileCached(IlvTile tile)
This method is called each time a loaded tile no
longer has a lock.
|
abstract void |
tileRetrieved(IlvTile tile)
This method is called each time that an unreleased cached tile
is locked again.
|
void |
write(IlvOutputStream stream)
Writes the cache to an
IlvOutputStream . |
protected void releaseTile(IlvTile tile)
tile
- The tile to releasepublic abstract void tileAboutToLoad(IlvTile tile)
tile
- The tile that is about to be loadedpublic abstract void tileCached(IlvTile tile)
tile
- The tile that has to be cachedpublic abstract void tileRetrieved(IlvTile tile)
tile
- The tile that is retrieved from the cache by a tile controllerpublic abstract void controllerDisposed(IlvTileController controller)
public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
stream
- the output streamIOException
- thrown when an exception occurs during
the write operation for this object.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.