| java.lang.Object com.sun.media.jai.util.SunCachedTile
SunCachedTile | final class SunCachedTile implements CachedTile(Code) | | Information associated with a cached tile.
This class is used by SunTileCache to create an object that
includes all the information associated with a tile, and is put
into the tile cache.
It also serves as a double linked list.
See Also: SunTileCache |
Constructor Summary | |
| SunCachedTile(RenderedImage owner, int tileX, int tileY, Raster tile, Object tileCacheMetric) |
Method Summary | |
public int | getAction() Returns information about the method that
triggered the notification event. | public RenderedImage | getOwner() Returns the owner of the cached tile. | public Raster | getTile() Returns the cached tile. | public Object | getTileCacheMetric() | public long | getTileSize() | public long | getTileTimeStamp() | static Object | hashKey(RenderedImage owner, int tileX, int tileY) Returns the hash table "key" as a Object for this
tile. | public String | toString() Returns a string representation of the class object. |
memorySize | long memorySize(Code) | | |
timeStamp | long timeStamp(Code) | | |
SunCachedTile | SunCachedTile(RenderedImage owner, int tileX, int tileY, Raster tile, Object tileCacheMetric)(Code) | | Constructor that takes a tile cache metric
since: 1.1 |
getAction | public int getAction()(Code) | | Returns information about the method that
triggered the notification event.
|
getOwner | public RenderedImage getOwner()(Code) | | Returns the owner of the cached tile.
|
getTile | public Raster getTile()(Code) | | Returns the cached tile.
|
getTileCacheMetric | public Object getTileCacheMetric()(Code) | | Returns the tileCacheMetric object
|
getTileSize | public long getTileSize()(Code) | | Returns the tile memory size
|
getTileTimeStamp | public long getTileTimeStamp()(Code) | | Returns the current time stamp
|
hashKey | static Object hashKey(RenderedImage owner, int tileX, int tileY)(Code) | | Returns the hash table "key" as a Object for this
tile. For PlanarImage and
SerializableRenderedImage , the key is generated by
the method ImageUtilgenerateID(Object) . For the
other cases, a Long object is returned.
The upper 32 bits for this Long is the tile owner's
hash code, and the lower 32 bits is the tile's index.
|
toString | public String toString()(Code) | | Returns a string representation of the class object.
|
|
|