Class 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 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 Detail

      • getTileX

        public int getTileX()
      • getTileY

        public int getTileY()
      • getKey

        public Object getKey()
      • toString

        public String toString()
        Returns a string representation of the class object.
        Overrides:
        toString in class Object
      • getKeyAsString

        public String getKeyAsString()
      • getTile

        public Raster getTile()
        Returns the cached tile.
        Specified by:
        getTile in interface javax.media.jai.CachedTile
      • getOwner

        public RenderedImage getOwner()
        Returns the owner of the cached tile.
        Specified by:
        getOwner in interface javax.media.jai.CachedTile
      • getTileTimeStamp

        public long getTileTimeStamp()
        Returns the current time stamp
        Specified by:
        getTileTimeStamp in interface javax.media.jai.CachedTile
      • getTileCacheMetric

        public Object getTileCacheMetric()
        Returns the tileCacheMetric object
        Specified by:
        getTileCacheMetric in interface javax.media.jai.CachedTile
      • getTileSize

        public long getTileSize()
        Returns the tile memory size
        Specified by:
        getTileSize in interface javax.media.jai.CachedTile
      • getAction

        public int getAction()
        Returns information about the method that triggered the notification event.
        Specified by:
        getAction in interface javax.media.jai.CachedTile