Package com.bc.ceres.jai.tilecache
Class MemoryTile
- java.lang.Object
- 
- com.bc.ceres.jai.tilecache.MemoryTile
 
- 
- All Implemented Interfaces:
- javax.media.jai.CachedTile
 
 public final class MemoryTile extends Object implements javax.media.jai.CachedTile Information associated with a cached tile.This class is used by SwappingTileCacheto 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.CachedTileinterface.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAction()Returns information about the method that triggered the notification event.ObjectgetKey()StringgetKeyAsString()RenderedImagegetOwner()Returns the owner of the cached tile.RastergetTile()Returns the cached tile.ObjectgetTileCacheMetric()Returns the tileCacheMetric objectlonggetTileSize()Returns the tile memory sizelonggetTileTimeStamp()Returns the current time stampintgetTileX()intgetTileY()static ObjecthashKey(RenderedImage owner, int tileX, int tileY)StringtoString()Returns a string representation of the class object.
 
- 
- 
- 
Method Detail- 
getTileXpublic int getTileX() 
 - 
getTileYpublic int getTileY() 
 - 
getKeypublic Object getKey() 
 - 
hashKeypublic static Object hashKey(RenderedImage owner, int tileX, int tileY) 
 - 
toStringpublic String toString() Returns a string representation of the class object.
 - 
getKeyAsStringpublic String getKeyAsString() 
 - 
getTilepublic Raster getTile() Returns the cached tile.- Specified by:
- getTilein interface- javax.media.jai.CachedTile
 
 - 
getOwnerpublic RenderedImage getOwner() Returns the owner of the cached tile.- Specified by:
- getOwnerin interface- javax.media.jai.CachedTile
 
 - 
getTileTimeStamppublic long getTileTimeStamp() Returns the current time stamp- Specified by:
- getTileTimeStampin interface- javax.media.jai.CachedTile
 
 - 
getTileCacheMetricpublic Object getTileCacheMetric() Returns the tileCacheMetric object- Specified by:
- getTileCacheMetricin interface- javax.media.jai.CachedTile
 
 - 
getTileSizepublic long getTileSize() Returns the tile memory size- Specified by:
- getTileSizein interface- javax.media.jai.CachedTile
 
 - 
getActionpublic int getAction() Returns information about the method that triggered the notification event.- Specified by:
- getActionin interface- javax.media.jai.CachedTile
 
 
- 
 
-