Revision 470 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java
ShpStrategy.java | ||
---|---|---|
11 | 11 |
import org.geotools.renderer.style.MarkStyle2D; |
12 | 12 |
import org.geotools.renderer.style.Style2D; |
13 | 13 |
|
14 |
import com.hardcode.driverManager.DriverLoadException; |
|
15 |
import com.hardcode.gdbms.engine.data.DriverException; |
|
14 | 16 |
import com.iver.cit.gvsig.fmap.ViewPort; |
15 | 17 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
16 | 18 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
... | ... | |
37 | 39 |
super(capa); |
38 | 40 |
} |
39 | 41 |
/** |
42 |
* @throws DriverLoadException |
|
40 | 43 |
* @see com.iver.cit.gvsig.fmap.operations.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, FStyle2D) |
41 | 44 |
*/ |
42 | 45 |
public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel) |
43 |
throws DriverIOException { |
|
46 |
throws DriverIOException, DriverLoadException {
|
|
44 | 47 |
VectorialAdapter adapter = getCapa().getSource(); |
45 | 48 |
BoundedShapes shapeBounds = (BoundedShapes) adapter.getDriver(); |
46 | 49 |
VectorialFileDriver driver = (VectorialFileDriver) adapter.getDriver(); |
... | ... | |
83 | 86 |
// BitSet bitset=this.queryByShape((IGeometry)new com.iver.cit.gvsig.fmap.core.Point2D(642561,4397059),1); |
84 | 87 |
try { |
85 | 88 |
// g.setTransform(viewPort.getAffineTransform()); |
89 |
getCapa().getRecordset().start(); |
|
86 | 90 |
for (int i = 0; i < sc; i++){ |
87 | 91 |
// Salimos si alguien cancela |
88 | 92 |
if (cancel.isCanceled()) break; |
... | ... | |
136 | 140 |
} |
137 | 141 |
} catch(IOException e) { |
138 | 142 |
throw new DriverIOException(e); |
143 |
} catch (DriverException e) { |
|
144 |
throw new DriverIOException(e); |
|
139 | 145 |
} |
140 | 146 |
|
141 | 147 |
|
... | ... | |
144 | 150 |
|
145 | 151 |
System.out.println(t2 - t1); |
146 | 152 |
} |
147 |
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverIOException { |
|
153 |
public void print(Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverIOException, DriverLoadException, DriverException {
|
|
148 | 154 |
super.draw(null, g, viewPort, cancel); // Quiero ejecutar el draw del padre, que es el que va sin acelaraci?n!! |
149 | 155 |
|
150 | 156 |
} |
Also available in: Unified diff