Revision 470 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/OptimiceStrategy.java

View differences:

OptimiceStrategy.java
5 5
import java.awt.geom.Rectangle2D;
6 6
import java.awt.image.BufferedImage;
7 7

  
8
import com.hardcode.driverManager.DriverLoadException;
9
import com.hardcode.gdbms.engine.data.DataSource;
10
import com.hardcode.gdbms.engine.data.DriverException;
8 11
import com.iver.cit.gvsig.fmap.ViewPort;
9 12
import com.iver.cit.gvsig.fmap.core.IGeometry;
10 13
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
......
41 44
     * @param cancel DOCUMENT ME!
42 45
     *
43 46
     * @throws DriverIOException
47
     * @throws DriverLoadException
48
     * @throws DriverException
44 49
     *
45 50
     * @see com.iver.cit.gvsig.fmap.operations.LayerOperations#draw(java.awt.image.BufferedImage,
46 51
     *      java.awt.Graphics2D, FStyle2D)
47 52
     */
48 53
    public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort,
49
        Cancellable cancel) throws DriverIOException {
54
        Cancellable cancel) throws DriverIOException, DriverLoadException, DriverException {
50 55
        VectorialAdapter adapter = getCapa().getSource();
56
        DataSource ds = getCapa().getRecordset();
51 57
        ShapeInfo shapeinfo = adapter.getShapeInfo();
52 58
        adapter.start();
59
        ds.start();
53 60

  
54 61
        VectorialFileDriver driver = (VectorialFileDriver) adapter.getDriver();
55 62
        int sc;
......
76 83

  
77 84
        long t2 = System.currentTimeMillis();
78 85
        adapter.stop();
86
        ds.stop();
79 87

  
80 88
        System.out.println(t2 - t1);
81 89
    }

Also available in: Unified diff