Revision 652 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/FirstStrategy.java

View differences:

FirstStrategy.java
6 6
import java.awt.geom.AffineTransform;
7 7
import java.awt.geom.Rectangle2D;
8 8
import java.awt.image.BufferedImage;
9
import java.io.IOException;
9 10

  
10 11
import org.apache.log4j.Logger;
11 12

  
12 13
import com.hardcode.driverManager.DriverLoadException;
13 14
import com.hardcode.gdbms.engine.data.DataSource;
14
import com.hardcode.gdbms.engine.data.DriverException;
15
import com.iver.cit.gvsig.fmap.DriverException;
15 16
import com.iver.cit.gvsig.fmap.ViewPort;
16 17
import com.iver.cit.gvsig.fmap.core.IGeometry;
17 18
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
......
43 44
	 * @throws DriverException
44 45
	 */
45 46
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel)
46
		throws DriverIOException, DriverLoadException, DriverException {
47
		throws DriverException {
48
		try{
49
			
47 50
		VectorialAdapter adapter = ((SingleLayer)getCapa()).getSource();
48 51
		DataSource ds = ((AlphanumericData) getCapa()).getRecordset();
49 52
		logger.debug("ds.start()");
......
79 82
		ds.stop();
80 83

  
81 84
		System.out.println(t2 - t1);
85
		} catch (DriverIOException e) {
86
			throw new DriverException(e);
87
		} catch (com.hardcode.gdbms.engine.data.DriverException e) {
88
			throw new DriverException(e);
89
		}
82 90
	}
83 91
}

Also available in: Unified diff