Revision 470 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java

View differences:

FLyrVect.java
12 12

  
13 13
import com.hardcode.driverManager.DriverLoadException;
14 14
import com.hardcode.gdbms.engine.data.DataSource;
15
import com.hardcode.gdbms.engine.data.DriverException;
16
import com.hardcode.gdbms.engine.data.NoSuchTableException;
17
import com.hardcode.gdbms.engine.instruction.FieldNotFoundException;
15 18
import com.iver.cit.gvsig.fmap.ViewPort;
16 19
import com.iver.cit.gvsig.fmap.core.IGeometry;
17 20
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
......
93 96
	}
94 97

  
95 98
	/**
99
	 * @throws DriverLoadException
100
	 * @throws DriverLoadException
101
	 * @throws DriverException
102
	 * @throws DriverIOException
96 103
	 * @see com.iver.cit.gvsig.fmap.layers.LayerOperations#draw(java.awt.image.BufferedImage, java.awt.Graphics2D, com.iver.cit.gvsig.fmap.ViewPort)
97 104
	 */
98
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverIOException {
105
	public void draw(BufferedImage image, Graphics2D g, ViewPort viewPort, Cancellable cancel) throws DriverIOException, DriverLoadException, DriverException {
99 106
		Strategy strategy = StrategyManager.getStrategy(this);
100 107

  
101 108
		strategy.draw(image, g, viewPort, cancel);
......
214 221
	}
215 222

  
216 223
	/**
224
	 * @throws DriverLoadException
225
	 * @throws DriverException
226
	 * @throws DriverLoadException
227
	 * @throws FieldNotFoundException
217 228
	 * @see com.iver.cit.gvsig.fmap.layers.CommonOperations#setLegend(int, com.iver.cit.gvsig.fmap.rendering.Legend)
218 229
	 */
219
	public void setLegend(VectorialLegend r) {
220
		VectorialLegend oldLegend = legend;
230
	public void setLegend(VectorialLegend r) throws FieldNotFoundException, DriverException, DriverLoadException {
221 231
		legend = r;
232
		legend.setDataSource(getRecordset());
222 233
		
223
		LegendChangedEvent e = new LegendChangedEvent(oldLegend, r);
224
		callLegendChanged(e);
225 234
	}
226 235

  
227 236
    public VectorialLegend getLegend() {

Also available in: Unified diff