Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/layout/fframes/FFrameLegend.java

View differences:

FFrameLegend.java
50 50
import java.awt.image.BufferedImage;
51 51
import java.util.ArrayList;
52 52

  
53
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
53 54
import com.iver.andami.PluginServices;
54
import com.iver.cit.gvsig.fmap.DriverException;
55 55
import com.iver.cit.gvsig.fmap.core.FShape;
56 56
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol;
57 57
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
......
157 157
     * @param at Transformada afin.
158 158
     * @param rv rect?ngulo sobre el que hacer un clip.
159 159
     * @param imgBase Imagen para acelerar el dibujado.
160
     *
161
     * @throws DriverException
162 160
     */
163 161
    public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
164
        BufferedImage imgBase) throws DriverException {
162
        BufferedImage imgBase) throws ReadDriverException {
165 163
        Rectangle2D.Double re = getBoundingBox(at);
166 164
        g.rotate(Math.toRadians(getRotation()), re.x + (re.width / 2),
167 165
            re.y + (re.height / 2));
......
200 198
     * @param h Altura en pixels.
201 199
     * @param layers Capa a representar.
202 200
     * @param n ?ndice de la capa a dibujar.
203
     * @throws DriverException
201
     * @throws ReadDriverException TODO
204 202
     */
205 203
    private void drawLegendOrToFFrame(Graphics2D g, Rectangle2D re, double h,
206
        FLayers layers, int[] n, LayoutContext layout) throws DriverException {
204
        FLayers layers, int[] n, LayoutContext layout) throws ReadDriverException {
207 205
        float sizefont = 0;
208 206

  
209 207
        if ((re.getHeight() / m_numLayers) < (re.getWidth() / (m_max * 0.7))) {
......
582 580
        n[0] = 0;
583 581
        try {
584 582
			drawLegendOrToFFrame(null,rectangle,h,lays,n,layout);
585
		} catch (DriverException e) {
583
		} catch (ReadDriverException e) {
586 584
			e.printStackTrace();
587 585
		}
588 586
        layout.delFFrame(this);
......
829 827
     *      java.awt.geom.AffineTransform)
830 828
     */
831 829
    public void print(Graphics2D g, AffineTransform at,FShape shape)
832
        throws DriverException {
830
        throws ReadDriverException {
833 831
        draw(g, at, null, null);
834 832
    }
835 833

  

Also available in: Unified diff