Revision 228 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/RasterFileAdapter.java

View differences:

RasterFileAdapter.java
8 8

  
9 9
import com.iver.cit.gvsig.fmap.ViewPort;
10 10
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
11
import com.iver.cit.gvsig.fmap.drivers.RasterFileDriver;
12
import com.iver.cit.gvsig.fmap.operations.QueriedPoint;
11 13

  
12
public class RasterFileAdapter extends RasterAdapter {
14
public class RasterFileAdapter implements BaseRaster {
15
    private RasterFileDriver rasterFileDriver;
13 16

  
14 17
	/**
15
	 * @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#getValueByCoords(int, int)
18
	 * @see com.iver.cit.gvsig.fmap.layers.LayerOperations#getFullExtent()
16 19
	 */
17
	public double getValueByCoords(int x, int y) {
18
		return 0;
20
	public Rectangle2D getFullExtent() throws DriverIOException {
21
		return null;
19 22
	}
20 23

  
21 24
	/**
22
	 * @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#getValueByCoords(int, int, int)
25
	 * @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
23 26
	 */
24
	public double getValueByCoords(int x, int y, int band) {
25
		return 0;
27
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort) throws DriverIOException {
26 28
	}
27 29

  
28 30
	/**
29
	 * @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#getValuesByCoords(int, int)
31
	 * @see com.iver.cit.gvsig.fmap.layers.RasterOperations#queryByPoint(com.iver.cit.gvsig.fmap.operations.QueriedPoint)
30 32
	 */
31
	public double[] getValuesByCoords(int x, int y) {
33
	public Object queryByPoint(QueriedPoint point) {
32 34
		return null;
33 35
	}
34

  
35
	/**
36
	 * @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#getFullExtent()
37
	 */
38
	public Rectangle2D getFullExtent() throws DriverIOException {
39
		return null;
40
	}
41

  
42
	/**
43
	 * @see com.iver.cit.gvsig.fmap.layers.RasterAdapter#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
44
	 */
45
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort) throws DriverIOException {
46
	}
47 36
}

Also available in: Unified diff