Revision 21299 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameScaleBar.java
FFrameScaleBar.java | ||
---|---|---|
58 | 58 |
|
59 | 59 |
import javax.print.attribute.PrintRequestAttributeSet; |
60 | 60 |
|
61 |
import org.gvsig.data.ReadException; |
|
61 | 62 |
import org.gvsig.fmap.geom.Geometry; |
62 | 63 |
|
63 |
import org.gvsig.fmap.core.shapes.FShape; |
|
64 | 64 |
import org.gvsig.fmap.mapcontext.MapContext; |
65 | 65 |
|
66 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
|
67 | 66 |
import com.iver.andami.PluginServices; |
68 | 67 |
import com.iver.cit.gvsig.project.documents.exceptions.SaveException; |
69 | 68 |
import com.iver.cit.gvsig.project.documents.layout.Attributes; |
... | ... | |
370 | 369 |
* @param imgBase Image para acelerar el dibujado. |
371 | 370 |
*/ |
372 | 371 |
public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv, |
373 |
BufferedImage imgBase) throws ReadDriverException {
|
|
372 |
BufferedImage imgBase) throws ReadException { |
|
374 | 373 |
Rectangle2D.Double r = getBoundingBox(at); |
375 | 374 |
g.rotate(Math.toRadians(getRotation()), r.x + (r.width / 2), |
376 | 375 |
r.y + (r.height / 2)); |
... | ... | |
1275 | 1274 |
* java.awt.geom.AffineTransform) |
1276 | 1275 |
*/ |
1277 | 1276 |
public void print(Graphics2D g, AffineTransform at, Geometry geom, PrintRequestAttributeSet properties) |
1278 |
throws ReadDriverException {
|
|
1277 |
throws ReadException { |
|
1279 | 1278 |
draw(g, at, null, null); |
1280 | 1279 |
} |
1281 | 1280 |
|
Also available in: Unified diff