Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
55 | 55 |
import java.awt.image.BufferedImage; |
56 | 56 |
import java.util.ArrayList; |
57 | 57 |
|
58 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
58 | 59 |
import com.iver.andami.PluginServices; |
59 | 60 |
import com.iver.andami.messages.NotificationManager; |
60 | 61 |
import com.iver.cit.gvsig.ProjectExtension; |
61 | 62 |
import com.iver.cit.gvsig.fmap.ColorEvent; |
62 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
63 | 63 |
import com.iver.cit.gvsig.fmap.ExtentEvent; |
64 | 64 |
import com.iver.cit.gvsig.fmap.MapContext; |
65 | 65 |
import com.iver.cit.gvsig.fmap.ProjectionEvent; |
... | ... | |
311 | 311 |
* rect?ngulo sobre el que hacer un clip. |
312 | 312 |
* @param imgBase |
313 | 313 |
* Imagen para acelerar el dibujado. |
314 |
* |
|
315 |
* @throws com.iver.cit.gvsig.fmap.DriverException |
|
316 | 314 |
*/ |
317 | 315 |
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, |
318 | 316 |
BufferedImage imgBase) |
319 |
throws com.iver.cit.gvsig.fmap.DriverException {
|
|
317 |
throws ReadDriverException {
|
|
320 | 318 |
Rectangle2D.Double r = getBoundingBox(at); |
321 | 319 |
if (getRotation() != 0) |
322 | 320 |
g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), r.y |
... | ... | |
457 | 455 |
* @param at |
458 | 456 |
* DOCUMENT ME! |
459 | 457 |
* |
460 |
* @throws DriverException |
|
461 |
* |
|
462 | 458 |
* @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D, |
463 | 459 |
* java.awt.geom.AffineTransform) |
464 | 460 |
*/ |
465 | 461 |
public void print(Graphics2D g, AffineTransform at, FShape shape) |
466 |
throws DriverException { |
|
462 |
throws ReadDriverException {
|
|
467 | 463 |
draw(g, at, null, null); |
468 | 464 |
} |
469 | 465 |
|
... | ... | |
488 | 484 |
|
489 | 485 |
try { |
490 | 486 |
this.getMapContext().print(g, getScale(),getLayout().getLayoutContext().getAtributes().toPrintAttributes()); |
491 |
} catch (com.iver.cit.gvsig.fmap.DriverException e) {
|
|
487 |
} catch (ReadDriverException e) {
|
|
492 | 488 |
NotificationManager.addError(e.getMessage(), e); |
493 | 489 |
} |
494 | 490 |
|
... | ... | |
939 | 935 |
refresh=true; |
940 | 936 |
} |
941 | 937 |
|
942 |
public void fullExtent() throws DriverException { |
|
938 |
public void fullExtent() throws ReadDriverException {
|
|
943 | 939 |
setNewExtent(getMapContext().getFullExtent()); |
944 | 940 |
} |
945 | 941 |
|
Also available in: Unified diff