Revision 21299 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameGroup.java
FFrameGroup.java | ||
---|---|---|
53 | 53 |
|
54 | 54 |
import javax.print.attribute.PrintRequestAttributeSet; |
55 | 55 |
|
56 |
import org.gvsig.data.ReadException; |
|
56 | 57 |
import org.gvsig.fmap.geom.Geometry; |
57 |
|
|
58 |
import org.gvsig.fmap.core.shapes.FShape; |
|
59 |
|
|
60 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
61 | 58 |
import com.iver.andami.PluginServices; |
62 | 59 |
import com.iver.andami.messages.NotificationManager; |
63 | 60 |
import com.iver.cit.gvsig.project.Project; |
... | ... | |
146 | 143 |
* @param imgBase Imagen utilizada para acelerar el dibujado. |
147 | 144 |
*/ |
148 | 145 |
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, |
149 |
BufferedImage imgBase) throws ReadDriverException {
|
|
146 |
BufferedImage imgBase) throws ReadException { |
|
150 | 147 |
Rectangle2D.Double r = getBoundingBox(at); |
151 | 148 |
g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), |
152 | 149 |
r.y + (r.height / 2)); |
... | ... | |
307 | 304 |
* java.awt.geom.AffineTransform) |
308 | 305 |
*/ |
309 | 306 |
public void print(Graphics2D g, AffineTransform at,Geometry geom, PrintRequestAttributeSet printingProperties) |
310 |
throws ReadDriverException {
|
|
307 |
throws ReadException { |
|
311 | 308 |
Rectangle2D.Double r = getBoundingBox(at); |
312 | 309 |
g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), |
313 | 310 |
r.y + (r.height / 2)); |
314 | 311 |
IFFrame[] fframes=m_fframes.toArray(new IFFrame[0]); |
315 | 312 |
for (int i = 0; i < fframes.length; i++) { |
316 | 313 |
// fframes[i].setPrintingProperties(printingProperties); |
317 |
fframes[i].print(g, at, shape, printingProperties);
|
|
314 |
fframes[i].print(g, at, geom, printingProperties);
|
|
318 | 315 |
// fframes[i].setPrintingProperties(null); |
319 | 316 |
} |
320 | 317 |
|
Also available in: Unified diff