01: /*
02: * $RCSfile: CachedTile.java,v $
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
05: *
06: * Use is subject to license terms.
07: *
08: * $Revision: 1.1 $
09: * $Date: 2005/02/11 04:57:05 $
10: * $State: Exp $
11: */
12: package javax.media.jai;
13:
14: import java.awt.image.RenderedImage;
15: import java.awt.image.Raster;
16:
17: /**
18: * Public interface for cached tiles used to
19: * retrieve information about the tile.
20: *
21: * @since JAI 1.1
22: */
23:
24: public interface CachedTile {
25:
26: /** Returns the image operation to which this
27: * cached tile belongs. In Sun Microsystems
28: * implementation, this is a RenderedImage.
29: */
30: RenderedImage getOwner();
31:
32: /** Returns the cached tile. In Sun Microsystems
33: * implementation, this object is a Raster.
34: */
35: Raster getTile();
36:
37: /** Returns a cost metric associated with the tile.
38: * This value is used to determine which tiles get
39: * removed from the cache.
40: */
41: Object getTileCacheMetric();
42:
43: /** Returns the time stamp of the cached tile. */
44: long getTileTimeStamp();
45:
46: /** Returns the memory size of the cached tile */
47: long getTileSize();
48:
49: /** Returns information about which method
50: * triggered a notification event. In the
51: * Sun Microsystems implementation, events
52: * include add, remove and update tile
53: * information.
54: */
55: int getAction();
56: }
|