Revision 21521
trunk/extensions/ext3Dgui/src/com/iver/ai2/gvsig3dgui/layout/fframe/FFrameView3D.java | ||
---|---|---|
444 | 444 |
Rectangle2D.Double r = getBoundingBox(at); |
445 | 445 |
|
446 | 446 |
// Dibujamos en impresora |
447 |
// Rectangle rclip = g.getClipBounds();
|
|
448 |
// g.clipRect((int) r.getMinX(), (int) r.getMinY(), (int) r.getWidth(),
|
|
449 |
// (int) r.getHeight());
|
|
447 |
Rectangle rclip = g.getClipBounds(); |
|
448 |
g.clipRect((int) r.getMinX(), (int) r.getMinY(), (int) r.getWidth(), |
|
449 |
(int) r.getHeight());
|
|
450 | 450 |
this.getMapContext().getViewPort().setOffset( |
451 | 451 |
new Point2D.Double(r.x, r.y)); |
452 |
// this.getMapContext().getViewPort().setImageSize( |
|
453 |
// new Dimension((int) r.width, (int) r.height)); |
|
454 |
// |
|
455 |
// try { |
|
456 |
// this.getMapContext().print( |
|
457 |
// g, |
|
458 |
// getScale(), |
|
459 |
// getLayout().getLayoutContext().getAtributes() |
|
460 |
// .toPrintAttributes()); |
|
461 |
// } catch (ReadDriverException e) { |
|
462 |
// NotificationManager.addError(e.getMessage(), e); |
|
463 |
// } |
|
464 |
// |
|
465 |
// g.setClip(rclip.x, rclip.y, rclip.width, rclip.height); |
|
452 |
this.getMapContext().getViewPort().setImageSize( |
|
453 |
new Dimension((int) r.width, (int) r.height)); |
|
454 |
|
|
455 |
Dimension imageSize = this.getMapContext().getViewPort().getImageSize(); |
|
466 | 456 |
|
467 |
this.getMapContext().draw( |
|
468 |
g, |
|
469 |
(new Rectangle((int) r.getMinX(), (int) r.getMinY(), (int) r |
|
470 |
.getWidth(), (int) r.getHeight()))); |
|
457 |
try { |
|
458 |
this.getMapContext().print(g, getScale(), null); |
|
459 |
} catch (ReadDriverException e) { |
|
460 |
NotificationManager.addError(e.getMessage(), e); |
|
461 |
} |
|
462 |
|
|
463 |
g.setClip(rclip.x, rclip.y, rclip.width, rclip.height); |
|
464 |
|
|
465 |
// this.getMapContext().draw( |
|
466 |
// g, |
|
467 |
// (new Rectangle((int) r.getMinX(), (int) r.getMinY(), (int) r |
|
468 |
// .getWidth(), (int) r.getHeight()))); |
|
471 | 469 |
// this.getMapContext().draw(image ,g,null,0); |
472 | 470 |
|
473 | 471 |
} |
Also available in: Unified diff