Revision 28368

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toc/TocItemLeaf.java
178 178
		
179 179
		if (g2 == null) return null;//TODO tipo de shape no soportado.
180 180
		try {
181
			symbol.drawInsideRectangle(g2, AffineTransform.getScaleInstance(0.8,0.8), r);
181
			symbol.drawInsideRectangle(g2, AffineTransform.getScaleInstance(0.8,0.8), r, null);
182 182
		} catch (SymbolDrawingException e) {
183 183
			if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
184 184
				try {
......
186 186
							SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
187 187
							symbol.getDescription(),
188 188
							SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS
189
							).drawInsideRectangle(g2, g2.getTransform(), r.getBounds());
189
							).drawInsideRectangle(g2, g2.getTransform(), r.getBounds(), null);
190 190
				} catch (SymbolDrawingException e1) {
191 191
					// IMPOSSIBLE TO REACH THIS
192 192
				}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/JSymbolPreviewButton.java
154 154

  
155 155
			if (prev!=null) {
156 156
				try {
157
					prev.drawInsideRectangle(g2, g2.getTransform(), r.getBounds());
157
					prev.drawInsideRectangle(g2, g2.getTransform(), r.getBounds(), null);
158 158
				} catch (SymbolDrawingException e) {
159 159
					if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
160 160
						try {
161 161
							SymbologyFactory.getWarningSymbol(SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
162 162
									prev.getDescription(),
163 163
									SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS
164
									).drawInsideRectangle(g2, g2.getTransform(), r.getBounds());
164
									).drawInsideRectangle(g2, g2.getTransform(), r.getBounds(), null);
165 165
						} catch (SymbolDrawingException e1) {
166 166
							// IMPOSSIBLE TO REACH THIS
167 167
						}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameOverView.java
41 41
     * @param imgBase DOCUMENT ME!
42 42
     */
43 43
	 public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
44
			BufferedImage imgBase) throws ReadDriverException {
44
			BufferedImage imgBase) {
45 45
		 if (getMapContext()!=null)
46
			 getMapContext().getViewPort()
47
				.setExtent(getMapContext().getFullExtent());
46
			try {
47
				getMapContext().getViewPort()
48
					.setExtent(getMapContext().getFullExtent());
49
			} catch (ReadDriverException e) {
50
				e.printStackTrace();
51
			}
48 52
		refresh();
49 53
		super.draw(g, at, rv, imgBase);
50 54
		Rectangle2D r = getBoundingBox(at);
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrame.java
62 62

  
63 63
import javax.swing.ImageIcon;
64 64

  
65
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
66 65
import com.iver.andami.PluginServices;
67 66
import com.iver.andami.messages.NotificationManager;
68 67
import com.iver.cit.gvsig.AddLayer;
......
473 472
     * @param imgBase DOCUMENT ME!
474 473
     */
475 474
    public abstract void draw(Graphics2D g, AffineTransform at, Rectangle2D r,
476
        BufferedImage imgBase) throws ReadDriverException;
475
        BufferedImage imgBase);
477 476

  
478 477
    /**
479 478
     * Devuelve el nombre que representa al fframe.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameBasic.java
55 55

  
56 56
import javax.print.attribute.PrintRequestAttributeSet;
57 57

  
58
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
59 58
import com.iver.andami.PluginServices;
60 59
import com.iver.cit.gvsig.ProjectExtension;
61 60
import com.iver.cit.gvsig.fmap.core.FShape;
......
125 124
     * @param imgBase Imagen para acelerar el dibujado.
126 125
     */
127 126
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
128
        BufferedImage imgBase) throws ReadDriverException {
127
        BufferedImage imgBase) {
129 128
    	fframeGraphics.draw(g,at,rv,imgBase);
130 129
    	if (fframe!=null)
131 130
    		fframe.draw(g,at,rv,imgBase);
......
192 191
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
193 192
     *      java.awt.geom.AffineTransform)
194 193
     */
195
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet printingProperties)
196
        throws ReadDriverException {
194
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet printingProperties) {
197 195
//    	fframeGraphics.setPrintingProperties(printingProperties);
198 196
    	fframeGraphics.print(g,at,shape, printingProperties);
199 197
//    	fframeGraphics.setPrintingProperties(null);
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameText.java
57 57

  
58 58
import javax.print.attribute.PrintRequestAttributeSet;
59 59

  
60
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
61 60
import com.iver.andami.PluginServices;
62 61
import com.iver.cit.gvsig.fmap.core.FShape;
63 62
import com.iver.cit.gvsig.project.documents.exceptions.SaveException;
......
97 96
    private Color titleColor = Color.BLACK; // The title's color
98 97
    private Font m_f = null;
99 98
    private boolean transicionPixelsMilimetros = true;
99
	private PrintRequestAttributeSet properties;
100 100

  
101 101
    /**
102 102
     * Crea un nuevo FFrameText.
......
215 215
     * @param imgBase Imagen para acelerar el dibujado.
216 216
     */
217 217
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
218
        BufferedImage imgBase) throws ReadDriverException {
218
        BufferedImage imgBase) {
219 219
        g.setColor(Color.BLACK);
220 220

  
221 221
        Rectangle2D.Double rec = getBoundingBox(at);
......
431 431
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
432 432
     *      java.awt.geom.AffineTransform)
433 433
     */
434
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) throws ReadDriverException {
434
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) {
435
        this.properties=properties;
435 436
        draw(g, at, null, null);
437
        this.properties=null;
438

  
436 439
    }
437 440

  
438 441
    /**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameGrid.java
14 14
import javax.print.attribute.PrintRequestAttributeSet;
15 15
import javax.print.attribute.standard.PrintQuality;
16 16

  
17
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
18 17
import com.iver.andami.PluginServices;
19 18
import com.iver.cit.gvsig.fmap.ViewPort;
20 19
import com.iver.cit.gvsig.fmap.core.FShape;
......
490 489
	}
491 490

  
492 491
	public void print(Graphics2D g, AffineTransform at, FShape shape,
493
			PrintRequestAttributeSet properties) throws ReadDriverException {
492
			PrintRequestAttributeSet properties) {
494 493
		fframeview.refresh();
495 494

  
496 495
		ViewPort vp=fframeview.getMapContext().getViewPort();
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameLegend.java
92 92
    private int dependenceIndex = -1;
93 93
	private ArrayList nameLayers=new ArrayList();
94 94
	private ArrayList areVisible=new ArrayList();
95
	private PrintRequestAttributeSet properties;
95 96

  
96 97
	public FFrameLegend() {
97 98

  
......
168 169
     * @param imgBase Imagen para acelerar el dibujado.
169 170
     */
170 171
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
171
        BufferedImage imgBase) throws ReadDriverException {
172
        BufferedImage imgBase) {
172 173
        Rectangle2D.Double re = getBoundingBox(at);
173 174
        g.rotate(Math.toRadians(getRotation()), re.x + (re.width / 2),
174 175
            re.y + (re.height / 2));
......
210 211
     * @throws ReadDriverException TODO
211 212
     */
212 213
    private void drawLegendOrToFFrame(Graphics2D g, Rectangle2D re, double h,
213
        FLayers layers, int[] n, LayoutContext layout) throws ReadDriverException {
214
        FLayers layers, int[] n, LayoutContext layout)  {
214 215
        float sizefont = 0;
215 216

  
216 217
        if ((re.getHeight() / m_numLayers) < (re.getWidth() / (m_max * 0.7))) {
......
440 441
				(int) haux);
441 442
		try {
442 443
			symbol2d.drawInsideRectangle(g, new AffineTransform(),
443
					rectangle);
444
					rectangle, properties);
444 445
		} catch (SymbolDrawingException e) {
445 446
			if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
446 447
				try {
447 448
					SymbologyFactory.getWarningSymbol(
448 449
							SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
449 450
							symbol2d.getDescription(),
450
							SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rectangle);
451
							SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rectangle, null);
451 452
				} catch (SymbolDrawingException e1) {
452 453
					// IMPOSSIBLE TO REACH THIS
453 454
				}
......
457 458
			}
458 459
		}
459 460
    }
460
    
461

  
461 462
    /**
462 463
     * A?ade al Layout un nuevo FFrameSymbol.
463 464
     *
......
573 574
        //toFFrames(layout, lays, rectangle, r.getWidth(), r.getHeight(), h, 0);
574 575
        int[] n = new int[1];
575 576
        n[0] = 0;
576
        try {
577
			drawLegendOrToFFrame(null,rectangle,h,lays,n,layout);
578
		} catch (ReadDriverException e) {
579
			e.printStackTrace();
580
		}
581
        layout.delFFrame(this);
577
      	drawLegendOrToFFrame(null,rectangle,h,lays,n,layout);
578
		layout.delFFrame(this);
582 579

  
583 580
        ///layout.getFFrames().remove(this);
584 581
        //layout.getEFS().endComplexCommand();
......
715 712
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
716 713
     *      java.awt.geom.AffineTransform)
717 714
     */
718
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet properties)
719
        throws ReadDriverException {
720
        draw(g, at, null, null);
715
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet properties) {
716
    	this.properties=properties;
717
        draw(g, at, s, null);
718
        this.properties=null;
721 719
    }
722 720

  
723 721
    /**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameSymbol.java
52 52

  
53 53
import javax.print.attribute.PrintRequestAttributeSet;
54 54

  
55
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
56 55
import com.iver.andami.PluginServices;
57 56
import com.iver.cit.gvsig.fmap.core.FShape;
58 57
import com.iver.cit.gvsig.fmap.core.SymbologyFactory;
......
66 65
 */
67 66
public class FFrameSymbol extends FFrameGraphics {
68 67

  
69
    /**
68
    private PrintRequestAttributeSet properties;
69

  
70
	/**
70 71
     * Crea un nuevo FFrameSymbol.
71 72
     */
72 73
    public FFrameSymbol() {
......
84 85
     * @param imgBase Imagen para acelerar el dibujado.
85 86
     */
86 87
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
87
        BufferedImage imgBase) throws ReadDriverException {
88
        BufferedImage imgBase) {
88 89
        Rectangle2D.Double re = getBoundingBox(at);
89 90
        g.rotate(Math.toRadians(getRotation()), re.x + (re.width / 2),
90 91
            re.y + (re.height / 2));
......
97 98
                    (int) (re.width), (int) (re.height));
98 99

  
99 100
            try {
100
				getFSymbol().drawInsideRectangle(g, mT2, rec);
101
				getFSymbol().drawInsideRectangle(g, mT2, rec, properties);
101 102
			} catch (SymbolDrawingException e) {
102 103
				if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
103 104
					try {
104 105
						SymbologyFactory.getWarningSymbol(
105 106
								SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
106 107
								getFSymbol().getDescription(),
107
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rec);
108
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rec, null);
108 109
					} catch (SymbolDrawingException e1) {
109 110
						// IMPOSSIBLE TO REACH THIS
110 111
					}
......
130 131
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
131 132
     *      java.awt.geom.AffineTransform)
132 133
     */
133
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet printingProperties) throws ReadDriverException {
134
        draw(g, at, null, null);
134
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) {
135
        this.properties=properties;
136
    	draw(g, at, null, null);
137
    	this.properties=null;
135 138
    }
136 139

  
137 140
    public void initialize() {
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameView.java
325 325
	 *            Imagen para acelerar el dibujado.
326 326
	 */
327 327
	public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
328
			BufferedImage imgBase)
329
			throws ReadDriverException {
328
			BufferedImage imgBase) {
330 329
		Rectangle2D.Double r = getBoundingBox(at);
331 330
		if (getRotation() != 0)
332 331
			g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), r.y
......
397 396
												.getImageWidth(), viewp
398 397
												.getImageHeight());
399 398
									}
400
									fmap.draw(imgBase, g, scale);
399
									try {
400
										fmap.draw(imgBase, g, scale);
401
									} catch (ReadDriverException e) {
402
										e.printStackTrace();
403
									}
401 404
									g.translate(r.getX(), r.getY());
402 405

  
403 406
								} else {
......
414 417
											.getGraphics();
415 418
									gimg.translate(- r.getX(), -r
416 419
											.getY());
417
									getMapContext().draw(m_image, gimg, getScale());
420
									try {
421
										getMapContext().draw(m_image, gimg, getScale());
422
									} catch (ReadDriverException e) {
423
										e.printStackTrace();
424
									}
418 425
									gimg.translate( r.getX(), r
419 426
											.getY());
420 427
									if (theBackColor != null) {
......
466 473
		return r;
467 474
    }
468 475

  
469
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet prroperties)
470
        throws ReadDriverException {
476
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet prroperties) {
471 477
        draw(g, at, null, null);
472 478
    }
473 479

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFramePicture.java
68 68
import org.w3c.dom.Element;
69 69
import org.w3c.dom.svg.SVGDocument;
70 70

  
71
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
72 71
import com.iver.andami.PluginServices;
73 72
import com.iver.andami.messages.NotificationManager;
74 73
import com.iver.cit.gvsig.fmap.core.FShape;
......
128 127
     * @param imgBase Imagen para acelerar el dibujado.
129 128
     */
130 129
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
131
        BufferedImage imgBase) throws ReadDriverException {
130
        BufferedImage imgBase) {
132 131
        Rectangle2D.Double r = getBoundingBox(at);
133 132
        g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
134 133
            r.y + (r.height / 2));
......
465 464
		return new FFramePictureDialog(getLayout(), this);
466 465
	}
467 466

  
468
	public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) throws ReadDriverException {
467
	public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) {
469 468
		draw(g, at, null, null);
470 469
	}
471 470
}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameScaleBar.java
57 57
import java.text.NumberFormat;
58 58

  
59 59
import javax.print.attribute.PrintRequestAttributeSet;
60
import javax.print.attribute.standard.PrintQuality;
60 61

  
61
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
62 62
import com.iver.andami.PluginServices;
63 63
import com.iver.cit.gvsig.fmap.MapContext;
64 64
import com.iver.cit.gvsig.fmap.core.FShape;
......
112 112
    private boolean aboveDescription = false;
113 113
    private int dependenceIndex = -1;
114 114
    private int numDec = 0;
115
	private PrintRequestAttributeSet properties;
115 116
    public static NumberFormat numberFormat = NumberFormat.getInstance();
116 117

  
117 118
    /**
......
367 368
     * @param imgBase Image para acelerar el dibujado.
368 369
     */
369 370
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
370
        BufferedImage imgBase) throws ReadDriverException {
371
        BufferedImage imgBase) {
371 372
        Rectangle2D.Double r = getBoundingBox(at);
372 373
        g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
373 374
            r.y + (r.height / 2));
......
384 385
                        if (scalex > (r.getHeight() / (8))) {
385 386
                            scalex = r.getHeight() / (2);
386 387
                        }
387

  
388
                        if (properties!=null){
389
                            PrintQuality pq = (PrintQuality) properties.get(PrintQuality.class);
390
                    			if (pq.equals(PrintQuality.NORMAL)){
391
                    				scalex *= (double) 300/72;
392
                    			}else if (pq.equals(PrintQuality.HIGH)){
393
                    				scalex *= (double) 600/72;
394
                    			}else if (pq.equals(PrintQuality.DRAFT)){
395
                    			//	unitFactor *= 72; (which is the same than doing nothing)
396
                    			}
397
                            }
388 398
                        g.setColor(textcolor);
389 399

  
390 400
                        if (m_f != null) {
......
1272 1282
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
1273 1283
     *      java.awt.geom.AffineTransform)
1274 1284
     */
1275
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties)
1276
        throws ReadDriverException {
1285
    public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet properties) {
1286
       	this.properties=properties;
1277 1287
        draw(g, at, null, null);
1288
        this.properties=null;
1289

  
1278 1290
    }
1279 1291

  
1280 1292
    /**
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameTable.java
134 134
     * @param imgBase DOCUMENT ME!
135 135
     */
136 136
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
137
        BufferedImage imgBase) throws ReadDriverException {
137
        BufferedImage imgBase) {
138 138
        Rectangle2D.Double r = getBoundingBox(at);
139 139
        g.setColor(Color.black);
140 140
        g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
......
149 149
        IFFrame[] fframes=getFFrames();
150 150
        for (int i =0;i<fframes.length;i++){
151 151
            FFrameBasic basic=(FFrameBasic)fframes[i];
152
            try {
153
                basic.draw(g,at,rv,imgBase);
154
            } catch (ReadDriverException e) {
155
                e.printStackTrace();
156
            }
152
            basic.draw(g,at,rv,imgBase);
157 153
        }
158 154
    }
159 155

  
......
168 164
        IFFrame[] fframes=getFFrames();
169 165
        for (int i =0;i<fframes.length;i++){
170 166
            FFrameBasic basic=(FFrameBasic)fframes[i];
171
            try {
172
                basic.draw(g,new AffineTransform(),null,null);
173
            } catch (ReadDriverException e) {
174
                e.printStackTrace();
175
            }
167
            basic.draw(g,new AffineTransform(),null,null);
176 168
        }
177 169
    }
178 170

  
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/IFFrame.java
53 53
import java.awt.geom.Rectangle2D;
54 54
import java.awt.image.BufferedImage;
55 55

  
56
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
57 56
import com.iver.cit.gvsig.fmap.core.IPrintable;
58 57
import com.iver.cit.gvsig.fmap.layers.XMLException;
59 58
import com.iver.cit.gvsig.project.documents.exceptions.SaveException;
......
117 116
     * @param at Transformada afin.
118 117
     * @param r rect?ngulo sobre el que hacer un clip.
119 118
     * @param imgBase Imagen para acelerar el dibujado.
120
     * @throws ReadDriverException TODO
121 119
     */
122 120
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D r,
123
        BufferedImage imgBase) throws ReadDriverException;
121
        BufferedImage imgBase);
124 122

  
125 123
//    /**
126 124
//     * Implementado para imprimir.
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameGroup.java
53 53

  
54 54
import javax.print.attribute.PrintRequestAttributeSet;
55 55

  
56
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
57 56
import com.iver.andami.PluginServices;
58 57
import com.iver.andami.messages.NotificationManager;
59 58
import com.iver.cit.gvsig.fmap.core.FShape;
......
143 142
     * @param imgBase Imagen utilizada para acelerar el dibujado.
144 143
     */
145 144
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
146
        BufferedImage imgBase) throws ReadDriverException {
145
        BufferedImage imgBase) {
147 146
        Rectangle2D.Double r = getBoundingBox(at);
148 147
        g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
149 148
            r.y + (r.height / 2));
......
303 302
     * @see com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame#print(java.awt.Graphics2D,
304 303
     *      java.awt.geom.AffineTransform)
305 304
     */
306
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet printingProperties)
307
        throws ReadDriverException {
305
    public void print(Graphics2D g, AffineTransform at,FShape shape, PrintRequestAttributeSet printingProperties) {
308 306
        Rectangle2D.Double r = getBoundingBox(at);
309 307
        g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2),
310 308
            r.y + (r.height / 2));
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameGraphics.java
54 54

  
55 55
import javax.print.attribute.PrintRequestAttributeSet;
56 56

  
57
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
58 57
import com.iver.andami.PluginServices;
59 58
import com.iver.cit.gvsig.fmap.core.FShape;
60 59
import com.iver.cit.gvsig.fmap.core.SymbologyFactory;
......
234 233
     * @param imgBase DOCUMENT ME!
235 234
     */
236 235
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
237
        BufferedImage imgBase) throws ReadDriverException {
236
        BufferedImage imgBase) {
238 237
        Rectangle2D.Double rect = getBoundingBox(at);
239 238
        g.rotate(Math.toRadians(getRotation()), rect.x + (rect.width / 2),
240 239
            rect.y + (rect.height / 2));
......
695 694
	        }
696 695
	    	return shapeType;
697 696
	    }
698
	public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet printingProperties) throws ReadDriverException {
697
	public void print(Graphics2D g, AffineTransform at, FShape shape, PrintRequestAttributeSet printingProperties) {
699 698
		 Rectangle2D.Double rect = getBoundingBox(at);
700 699
	     g.rotate(Math.toRadians(getRotation()), rect.x + (rect.width / 2),
701 700
	            rect.y + (rect.height / 2));
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/gui/Layout.java
192 192
        layoutContext.getAtributes().setDistanceUnitY(layoutControl.getRect());
193 193
        IFFrame[] fframes=layoutContext.getFFrames();
194 194
        for (int i = 0; i < fframes.length; i++) {
195
            try {
196 195
//            	fframes[i].setPrintingProperties(this.att);
197
        	    fframes[i].print(g2, layoutControl.getAT(),null, layoutContext.getAtributes().getAttributes());
196
       	    fframes[i].print(g2, layoutControl.getAT(),null, layoutContext.getAtributes().getAttributes());
198 197
//        	    fframes[i].setPrintingProperties(null);
199
        	} catch (ReadDriverException e) {
200
                NotificationManager.addError(e.getMessage(), e);
201
            }
202 198
        }
203 199

  
204 200
        // TODO Esto es para ver el rect?ngulo que representa el folio en la
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/SymbolPreviewer.java
174 174

  
175 175
		if (symbol != null) {
176 176
			try {
177
				symbol.drawInsideRectangle(g2, new AffineTransform(), r);
177
				symbol.drawInsideRectangle(g2, new AffineTransform(), r, null);
178 178
			} catch (SymbolDrawingException e) {
179 179
				if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
180 180
					try {
......
182 182
								SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
183 183
								"",
184 184
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).
185
							drawInsideRectangle(g2, null, r);
185
							drawInsideRectangle(g2, null, r, null);
186 186
					} catch (SymbolDrawingException e1) {
187 187
						// IMPOSSIBLE TO REACH THIS
188 188
					}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/SymbolLevelsWindow.java
656 656
							width - 20,
657 657
							rowHeight - 6);
658 658
					try {
659
						sym.getLayer(i).drawInsideRectangle(g, null, rect);
659
						sym.getLayer(i).drawInsideRectangle(g, null, rect, null);
660 660
					} catch (SymbolDrawingException e) {
661 661
						if (e.getType() == SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS) {
662 662
							try {
663 663
								SymbologyFactory.getWarningSymbol(
664 664
										SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
665 665
										"",
666
										SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rect);
666
										SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).drawInsideRectangle(g, null, rect, null);
667 667
							} catch (SymbolDrawingException e1) {
668 668
								// IMPOSSIBLE TO REACH THIS
669 669
							}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/styling/StylePreviewer.java
164 164
								SymbolDrawingException.STR_UNSUPPORTED_SET_OF_SETTINGS,
165 165
								"",
166 166
								SymbolDrawingException.UNSUPPORTED_SET_OF_SETTINGS).
167
								drawInsideRectangle(g2, null, r);
167
								drawInsideRectangle(g2, null, r, null);
168 168
					} catch (SymbolDrawingException e1) {
169 169
						// IMPOSSIBLE TO REACH THIS
170 170
					}

Also available in: Unified diff