Revision 242
trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/extension/Print.java | ||
---|---|---|
242 | 242 |
return Printable.NO_SUCH_PAGE; |
243 | 243 |
} |
244 | 244 |
|
245 |
// System.err.println("Clip 0 = " + g.getClip()); |
|
246 |
|
|
247 | 245 |
Graphics2D g2d = (Graphics2D) g; |
248 | 246 |
|
249 |
/* |
|
250 |
double x = format.getImageableX(); |
|
251 |
double y = format.getImageableY(); |
|
252 |
double w = format.getImageableWidth(); |
|
253 |
double h = format.getImageableHeight(); |
|
254 |
*/ |
|
255 | 247 |
|
256 |
// System.err.println("Orientaci?n en Print: " + format.getOrientation()); |
|
257 |
// System.out.println("print:(" + x + "," + y + "," + w + "," + h + ")"); |
|
258 |
// System.err.println("Clip 1 = " + g2d.getClip()); |
|
259 |
|
|
260 | 248 |
AffineTransform at = g2d.getTransform(); |
261 | 249 |
g2d.translate(0, 0); |
262 | 250 |
theLayoutPanel.obtainRect(true); |
263 | 251 |
|
264 |
//LWSAffineTransform at = g2d.getTransform(); |
|
265 | 252 |
g2d.scale((double) 72 / (double) (Attributes.DPI), |
266 | 253 |
(double) 72 / (double) (Attributes.DPI)); |
267 |
// System.err.println("Clip 2 =" + g2d.getClip()); |
|
268 | 254 |
|
269 | 255 |
if (theLayoutPanel.getLayoutContext().getAttributes().isMargin()) { |
270 | 256 |
g2d.setClip((int) (theLayoutPanel.getLayoutControl().getRect().getMinX() + |
Also available in: Unified diff