Revision 18218 trunk/libraries/libCacheService/src/org/gvsig/cacheservice/RasterCacheService.java

View differences:

RasterCacheService.java
2 2

  
3 3
import java.awt.Image;
4 4
import java.awt.Point;
5
import java.awt.geom.Rectangle2D;
5 6
import java.awt.image.RenderedImage;
6 7
import java.io.File;
7 8
import java.io.FileOutputStream;
......
53 54
	 * @return The image of the.
54 55
	 * @throws CacheServiceException
55 56
	 */
56
	abstract public Image getTileAsImage(TileNum tileNum)
57
	abstract public Image getTileAsImage(TileNum tileNum, Rectangle2D extent)
57 58
			throws CacheServiceException;
58 59

  
59
	public Image getTileAsImage(int level, Point num)
60
	public Image getTileAsImage(int level, Point num, Rectangle2D extent)
60 61
			throws CacheServiceException {
61
		return getTileAsImage(new TileNum(level, num));
62
		return getTileAsImage(new TileNum(level, num), extent);
62 63
	}
63 64

  
64 65
	/**
......
69 70
	 * @throws MalformedURLException
70 71
	 * @throws IOException
71 72
	 */
72
	abstract public String getTileAsFName(TileNum tileNum)
73
	abstract public String getTileAsFName(TileNum tileNum, Rectangle2D extent)
73 74
			throws CacheServiceException;
74 75

  
75 76
	/**
......
83 84
	 * @throws MalformedURLException
84 85
	 * @throws IOException
85 86
	 */
86
	public String getTileAsFName(int level, Point num)
87
	public String getTileAsFName(int level, Point num, Rectangle2D extent)
87 88
			throws CacheServiceException {
88
		return getTileAsFName(new TileNum(level, num));
89
		return getTileAsFName(new TileNum(level, num), extent);
89 90
	}
90 91

  
91 92
	public Image getImageFromCachedFile(String fName) throws IOException {

Also available in: Unified diff