Revision 21299 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFramePicture.java
FFramePicture.java | ||
---|---|---|
64 | 64 |
import org.apache.batik.bridge.ViewBox; |
65 | 65 |
import org.apache.batik.gvt.GraphicsNode; |
66 | 66 |
import org.apache.batik.gvt.renderer.StaticRenderer; |
67 |
import org.gvsig.data.ReadException; |
|
67 | 68 |
import org.gvsig.fmap.geom.Geometry; |
68 |
import org.gvsig.fmap.core.shapes.FShape; |
|
69 | 69 |
import org.w3c.dom.Document; |
70 | 70 |
import org.w3c.dom.Element; |
71 | 71 |
import org.w3c.dom.svg.SVGDocument; |
72 | 72 |
|
73 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
74 | 73 |
import com.iver.andami.PluginServices; |
75 | 74 |
import com.iver.andami.messages.NotificationManager; |
76 | 75 |
import com.iver.cit.gvsig.project.documents.exceptions.SaveException; |
... | ... | |
111 | 110 |
private GVTBuilder gvtBuilder = new GVTBuilder(); |
112 | 111 |
private GraphicsNode gvtRoot = null; |
113 | 112 |
private BridgeContext ctx; |
114 |
|
|
113 |
|
|
115 | 114 |
/** |
116 | 115 |
* Creates a new FFramePicture object. |
117 | 116 |
*/ |
... | ... | |
129 | 128 |
* @param imgBase Imagen para acelerar el dibujado. |
130 | 129 |
*/ |
131 | 130 |
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, |
132 |
BufferedImage imgBase) throws ReadDriverException {
|
|
131 |
BufferedImage imgBase) throws ReadException { |
|
133 | 132 |
Rectangle2D.Double r = getBoundingBox(at); |
134 | 133 |
g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), |
135 | 134 |
r.y + (r.height / 2)); |
... | ... | |
467 | 466 |
return new FFramePictureDialog(getLayout(), this); |
468 | 467 |
} |
469 | 468 |
|
470 |
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintRequestAttributeSet properties) throws ReadDriverException {
|
|
469 |
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintRequestAttributeSet properties) throws ReadException { |
|
471 | 470 |
draw(g, at, null, null); |
472 | 471 |
} |
473 | 472 |
} |
Also available in: Unified diff