Package com.bc.ceres.jai.tilecache
Class MemoryTile
java.lang.Object
com.bc.ceres.jai.tilecache.MemoryTile
- All Implemented Interfaces:
javax.media.jai.CachedTile
Information associated with a cached tile.
This class is used by SwappingTileCache
to create an object that
includes all the information associated with a tile, and is put
into the tile cache.
The implementation is based on the Sun Microsystems' implementation of
the javax.media.jai.CachedTile
interface.
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns information about the method that triggered the notification event.getKey()
getOwner()
Returns the owner of the cached tile.getTile()
Returns the cached tile.Returns the tileCacheMetric objectlong
Returns the tile memory sizelong
Returns the current time stampint
getTileX()
int
getTileY()
static Object
hashKey
(RenderedImage owner, int tileX, int tileY) toString()
Returns a string representation of the class object.
-
Method Details
-
getTileX
public int getTileX() -
getTileY
public int getTileY() -
getKey
-
hashKey
-
toString
Returns a string representation of the class object. -
getKeyAsString
-
getTile
Returns the cached tile.- Specified by:
getTile
in interfacejavax.media.jai.CachedTile
-
getOwner
Returns the owner of the cached tile.- Specified by:
getOwner
in interfacejavax.media.jai.CachedTile
-
getTileTimeStamp
public long getTileTimeStamp()Returns the current time stamp- Specified by:
getTileTimeStamp
in interfacejavax.media.jai.CachedTile
-
getTileCacheMetric
Returns the tileCacheMetric object- Specified by:
getTileCacheMetric
in interfacejavax.media.jai.CachedTile
-
getTileSize
public long getTileSize()Returns the tile memory size- Specified by:
getTileSize
in interfacejavax.media.jai.CachedTile
-
getAction
public int getAction()Returns information about the method that triggered the notification event.- Specified by:
getAction
in interfacejavax.media.jai.CachedTile
-