Revision 3406

View differences:

branches/gvSIG_WMSv2/extensions/extWMS/.project
10 10
			<arguments>
11 11
			</arguments>
12 12
		</buildCommand>
13
		<buildCommand>
14
			<name>org.eclipse.ve.java.core.vebuilder</name>
15
			<arguments>
16
			</arguments>
17
		</buildCommand>
13 18
	</buildSpec>
14 19
	<natures>
20
		<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
15 21
		<nature>org.eclipse.jdt.core.javanature</nature>
22
		<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature>
16 23
	</natures>
17 24
</projectDescription>
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/WMSDataSourceAdapter.java
58 58
import org.gvsig.remoteClient.wms.WMSProtocolHandler;
59 59

  
60 60
import com.iver.cit.gvsig.fmap.drivers.UnsupportedVersionException;
61
import com.iver.cit.gvsig.gui.wizard.WMSWizardData;
62
import com.iver.cit.gvsig.gui.wizard.WMSWizardDataSource;
61
import com.iver.cit.gvsig.gui.wizards.WMSWizardData;
62
import com.iver.cit.gvsig.gui.wizards.WMSWizardDataSource;
63 63
import com.iver.cit.gvsig.gui.wizards.WizardData;
64 64

  
65 65

  
......
449 449
     * @see com.iver.cit.gvsig.gui.wms.WMSWizardDataSource#detalles()
450 450
     */
451 451
    public WMSWizardData detalles(URL host)
452
        throws IllegalStateException, ValidationException, 
453
            UnsupportedVersionException, IOException {
454
        try {
455
			wms = new WMSClient(host.toString());
456
			
457
			// Send a getCapabilities request;
458
			wms.connect();
459
			
460
			//TODO
461
			//Implement this
462
			String version = wms.getVersion();
463
	        if (version.equals("1.0.0")) {
464
	            //return detalles_1_0_0();
465
	        } else if (version.equals("1.1.1")) {
466
	            return detalles_1_1_1();
467
	        } else {
468
	            throw new UnsupportedVersionException(version);
469
	        }		
470
			
471
	        /*com.iver.wmsclient.Capabilities c = cliente.getCapabilities(host);
472
	        String version = c.getVersion();
473
	
474
	        if (version.equals("1.0.0")) {
475
	            return detalles_1_0_0((WMT_MS_Capabilities) c.getRoot());
476
	        } else if (version.equals("1.1.0")) {
477
	            return detalles_1_1_0((com.iver.wmsclient.wms_1_1_0.capabilities.WMT_MS_Capabilities) c.getRoot());
478
	        } else if (version.equals("1.1.1")) {
479
	            return detalles_1_1_1((com.iver.wmsclient.wms_1_1_1.capabilities.WMT_MS_Capabilities) c.getRoot());
480
	        } else if (version.equals("1.3.0")) {
481
	            return detalles_1_3_0((com.iver.wmsclient.wms_1_3_0.capabilities.WMS_Capabilities) c.getRoot());
482
	        } else {
483
	            throw new UnsupportedVersionException(version);
484
	        }*/
485
		} catch (Exception e) {
486
			throw new UnsupportedVersionException(e);
487
		}
488
		return null;
452
    throws IllegalStateException, ValidationException, 
453
    UnsupportedVersionException, IOException {
454
    	wms = new WMSClient(host.toString());
455
    	
456
    	// Send a getCapabilities request;
457
    	wms.connect();
458
    	
459
    	//TODO
460
    	//Implement this
461
    	String version = wms.getVersion();
462
    	if (version.equals("1.0.0")) {
463
    		
464
    	} else if (version.equals("1.1.1")) {
465
    		return detalles_1_1_1();
466
    	} else {
467
    		throw new UnsupportedVersionException(version);
468
    	}		
469
    	return null;
489 470
    }
490

  
471
    
491 472
    /**
492 473
     * M?todo detalles para la versi?n 1.1.1
493 474
     *
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/dialogs/WMSPropsDialog.java
59 59
import com.iver.cit.gvsig.fmap.layers.FLyrWMS;
60 60
import com.iver.cit.gvsig.gui.WMSDataSourceAdapter;
61 61
import com.iver.cit.gvsig.gui.panels.WMSParamsPanel;
62
import com.iver.cit.gvsig.gui.wizard.WMSWizardData;
63
import com.iver.cit.gvsig.gui.wizard.WMSWizardDataSource;
62
import com.iver.cit.gvsig.gui.wizards.WMSWizardData;
63
import com.iver.cit.gvsig.gui.wizards.WMSWizardDataSource;
64 64
import com.iver.cit.gvsig.gui.wizards.WizardListenerSupport;
65 65

  
66 66
/**
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/WMSParamsPanel.java
55 55
import javax.swing.tree.TreePath;
56 56

  
57 57
import com.iver.andami.PluginServices;
58
import com.iver.cit.gvsig.gui.wizard.FormatListModel;
59
import com.iver.cit.gvsig.gui.wizard.LayerInfo;
60
import com.iver.cit.gvsig.gui.wizard.LayerListModel;
61
import com.iver.cit.gvsig.gui.wizard.LayerTreeModel;
62
import com.iver.cit.gvsig.gui.wizard.WMSWizardData;
63
import com.iver.cit.gvsig.gui.wizard.WMSWizardDataSource;
58
import com.iver.cit.gvsig.gui.wizards.FormatListModel;
59
import com.iver.cit.gvsig.gui.wizards.LayerInfo;
60
import com.iver.cit.gvsig.gui.wizards.LayerListModel;
61
import com.iver.cit.gvsig.gui.wizards.LayerTreeModel;
62
import com.iver.cit.gvsig.gui.wizards.WMSWizardData;
63
import com.iver.cit.gvsig.gui.wizards.WMSWizardDataSource;
64 64
import com.iver.cit.gvsig.gui.wizards.WizardData;
65 65
import com.iver.cit.gvsig.gui.wizards.WizardDataSource;
66 66
import com.iver.cit.gvsig.gui.wizards.WizardListenerSupport;
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/FormatListModel.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.gui.wizards;
42

  
43
import javax.swing.AbstractListModel;
44

  
45

  
46
/**
47
 * DOCUMENT ME!
48
 *
49
 * @author Fernando Gonz?lez Cort?s
50
 */
51
public class FormatListModel extends AbstractListModel {
52
    String[] formatos;
53

  
54
    /**
55
     * Creates a new FormatListModel object.
56
     *
57
     * @param f DOCUMENT ME!
58
     */
59
    public FormatListModel(String[] f) {
60
        formatos = f;
61
    }
62

  
63
    /**
64
     * @see javax.swing.ListModel#getSize()
65
     */
66
    public int getSize() {
67
        return formatos.length;
68
    }
69

  
70
    /**
71
     * @see javax.swing.ListModel#getElementAt(int)
72
     */
73
    public Object getElementAt(int index) {
74
        return formatos[index];
75
    }
76
}
0 77

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/WizardWMS.java
1
/*
2
 * Created on 23-abr-2004
3
 *
4
 * To change the template for this generated file go to
5
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
6
 */
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
package com.iver.cit.gvsig.gui.wizards;
48

  
49
import java.awt.geom.Rectangle2D;
50
import java.net.MalformedURLException;
51
import java.net.URL;
52

  
53
import javax.swing.DefaultComboBoxModel;
54
import javax.swing.JPanel;
55
import javax.swing.tree.TreePath;
56

  
57
import org.apache.log4j.Logger;
58

  
59
import com.iver.andami.PluginServices;
60
import com.iver.cit.gvsig.fmap.layers.FLayer;
61
import com.iver.cit.gvsig.fmap.layers.FLyrWMS;
62
import com.iver.cit.gvsig.gui.WMSDataSourceAdapter;
63
import com.iver.cit.gvsig.gui.WizardPanel;
64
import com.iver.cit.gvsig.gui.panels.WMSParamsPanel;
65
import com.iver.cit.gvsig.gui.wizards.WizardListener;
66
import com.iver.cit.gvsig.gui.wizards.WizardListenerSupport;
67
import com.iver.utiles.NotExistInXMLEntity;
68
import com.iver.utiles.XMLEntity;
69
import com.iver.utiles.swing.JComboBox;
70

  
71

  
72
/**
73
 * DOCUMENT ME!
74
 *
75
 * @author Fernando Gonz?lez Cort?s
76
 */
77
public class WizardWMS extends WizardPanel {
78
	private static Logger logger = Logger.getLogger(WizardWMS.class.getName());
79
	private int page = 0;
80
	private boolean conectado = false;
81
	private javax.swing.JPanel jContentPane = null;
82
	private JComboBox cmbHost = null;
83
	private javax.swing.JButton btnDetalles = null;
84
	private javax.swing.JPanel jPanel = null;
85
	private javax.swing.JLabel jLabel1 = null;
86
	private javax.swing.JLabel lblTitle = null;
87
	private javax.swing.JScrollPane jScrollPane = null;
88
	private javax.swing.JTextArea txtAbstract = null;
89
	private javax.swing.JPanel panelPage1 = null;
90
	private javax.swing.JButton btnSiguiente = null;
91
	private javax.swing.JButton btnAnterior = null;
92
	private javax.swing.JPanel jPanel1 = null;
93
	private WizardListenerSupport listenerSupport = new WizardListenerSupport();
94
	private WMSWizardDataSource dataSource;
95
	private WMSParamsPanel wmsParamsPanel = null;
96

  
97
	/**
98
	 * This is the default constructor
99
	 */
100
	public WizardWMS() {
101
		super();
102
		initialize();
103
	}
104

  
105
	/**
106
	 * This method initializes this
107
	 */
108
	private void initialize() {
109
		setTabName("WMS");
110
		
111
		this.setSize(510, 468);
112
		this.setLayout(null);
113
		this.setPreferredSize(new java.awt.Dimension(750, 420));
114
		this.setVisible(true);
115
		this.add(getPanelPage1(), null);
116
		this.add(getPanelPage2(), null);
117
		this.add(getBtnAnterior(), null);
118
		this.add(getBtnSiguiente(), null);
119
		activarVisualizarBotones();
120
	}
121

  
122

  
123
	private JPanel getPanelPage2(){
124
		if (wmsParamsPanel == null){
125
			wmsParamsPanel = new WMSParamsPanel();
126
			wmsParamsPanel.setListenerSupport(this.listenerSupport);
127
			wmsParamsPanel.setBounds(15, 5, 480, 428);
128
			
129
		}
130
		return wmsParamsPanel;
131
	}
132
	/**
133
	 * DOCUMENT ME!
134
	 *
135
	 * @param host DOCUMENT ME!
136
	 */
137
	private void addHost(String host) {
138
		host = host.trim();
139

  
140
		DefaultComboBoxModel model = (DefaultComboBoxModel) getTxtHost()
141
																.getModel();
142

  
143
		if (model.getIndexOf(host) < 0) {
144
			model.addElement(host);
145

  
146
			PluginServices ps = PluginServices.getPluginServices(this);
147
			XMLEntity xml = ps.getPersistentXML();
148

  
149
			try {
150
				String[] servers = xml.getStringArrayProperty("wms-servers");
151
				String[] newServers = new String[servers.length + 1];
152
				System.arraycopy(servers, 0, newServers, 0, servers.length);
153
				newServers[servers.length] = host;
154
				xml.putProperty("wms-servers", newServers);
155
			} catch (NotExistInXMLEntity e) {
156
				xml.putProperty("wms-servers", new String[] { host });
157
			}
158

  
159
			ps.setPersistentXML(xml);
160
		}
161
	}
162

  
163
	/**
164
	 * DOCUMENT ME!
165
	 */
166
	private void rellenarControles() {
167
		try {
168
			String host = cmbHost.getModel().getSelectedItem().toString();
169
			URL url = new URL(host);
170
			WMSWizardData data = dataSource.detalles(url);
171
			lblTitle.setText(data.getTitle());
172
			txtAbstract.setText(data.getAbstract());
173
			
174
			addHost(host);
175
			wmsParamsPanel.setWizardData(data);
176
			wmsParamsPanel.setDataSource(dataSource);
177
			conectado = true;
178
			activarVisualizarBotones();
179
		} catch (Exception e) {
180
			listenerSupport.callError(e);
181
			e.printStackTrace();
182
		}
183
	}
184

  
185
	/**
186
	 * DOCUMENT ME!
187
	 */
188
	private void activarVisualizarBotones() {
189
		if (page == 0) {
190
			getBtnAnterior().setEnabled(false);
191
			getBtnSiguiente().setVisible(true);
192

  
193
			if (conectado) {
194
				getBtnSiguiente().setEnabled(true);
195
			} else {
196
				getBtnSiguiente().setEnabled(false);
197
			}
198
		} else if (page < wmsParamsPanel.getNumTabs()) {
199
			getBtnSiguiente().setEnabled(true);
200
			getBtnSiguiente().setVisible(true);
201
			getBtnAnterior().setEnabled(true);
202
			getBtnAnterior().setVisible(true);
203
			if (wmsParamsPanel.nextPageEnabled()==-1){
204
			    getBtnSiguiente().setEnabled(false);
205
			}
206
			listenerSupport.callStateChanged(wmsParamsPanel.isCorretlyConfigured());
207
		} else if (page == wmsParamsPanel.getNumTabs()) {
208
			getBtnSiguiente().setVisible(false);
209
			getBtnSiguiente().setEnabled(false);
210
			listenerSupport.callStateChanged(wmsParamsPanel 
211
					.isCorretlyConfigured());
212
		}
213
	}
214

  
215
	/**
216
	 * This method initializes txtHost
217
	 *
218
	 * @return javax.swing.JTextField
219
	 */
220
	private javax.swing.JComboBox getTxtHost() {
221
		if (cmbHost == null) {
222
			cmbHost = new JComboBox();
223
			cmbHost.setModel(new DefaultComboBoxModel());
224
			cmbHost.setPreferredSize(new java.awt.Dimension(350, 20));
225
			cmbHost.setBounds(11, 26, 454, 20);
226
			cmbHost.setEditable(true);
227

  
228
			XMLEntity xml = PluginServices.getPluginServices(this)
229
										  .getPersistentXML();
230
			if (xml == null)
231
				xml = new XMLEntity();
232
			
233
			if (!xml.contains("wms-servers")) {
234
				String[] servers = new String[8];
235
                servers[0] = "http://www.idee.es/wms/IDEE-Base/IDEE-Base";
236
                servers[1] = "http://wms.jpl.nasa.gov/wms.cgi?";
237
                servers[2] = "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap?";
238
				servers[3] = "http://demo.deegree.org:8080/deegree/wms";
239
                servers[4] = "http://orto.cth.gva.es/wmsconnector/com.esri.wms.Esrimap/wms_patricova";
240
                servers[5] = "http://orto.cth.gva.es/wmsconnector/com.esri.wms.Esrimap/wms_parque_fondo_prug";
241
                servers[6] = "http://orto.cth.gva.es/wmsconnector/com.esri.wms.Esrimap/wms_pgof";
242
                servers[7] = "http://orto.cth.gva.es/wmsconnector/com.esri.wms.Esrimap/wms_urbanismo_tematicos";
243

  
244
				xml.putProperty("wms-servers", servers);
245
			}
246

  
247
			try {
248
				String[] servers = xml.getStringArrayProperty("wms-servers");
249

  
250
				for (int i = 0; i < servers.length; i++) {
251
					((DefaultComboBoxModel) cmbHost.getModel()).addElement(servers[i]);
252
				}
253
			} catch (NotExistInXMLEntity e) {
254
			}
255
		}
256

  
257
		return cmbHost;
258
	}
259

  
260
	/**
261
	 * This method initializes btnDetalles
262
	 *
263
	 * @return javax.swing.JButton
264
	 */
265
	private javax.swing.JButton getBtnDetalles() {
266
		if (btnDetalles == null) {
267
			btnDetalles = new javax.swing.JButton();
268
			btnDetalles.setPreferredSize(new java.awt.Dimension(100, 20));
269
			btnDetalles.setBounds(366, 50, 100, 20);
270
			btnDetalles.setText(PluginServices.getText(this, "detalles"));
271
			btnDetalles.addActionListener(new java.awt.event.ActionListener() {
272
					public void actionPerformed(java.awt.event.ActionEvent e) {
273
						rellenarControles();
274
					}
275
				});
276
		}
277

  
278
		return btnDetalles;
279
	}
280

  
281
	/**
282
	 * This method initializes jPanel
283
	 *
284
	 * @return javax.swing.JPanel
285
	 */
286
	private javax.swing.JPanel getJPanel() {
287
		if (jPanel == null) {
288
			jPanel = new javax.swing.JPanel();
289
			jPanel.setLayout(null);
290
			jPanel.setPreferredSize(new java.awt.Dimension(470, 130));
291
			jPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
292
					null, PluginServices.getText(this, "descripcion"),
293
					javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
294
					javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
295
			jPanel.setBounds(2, 96, 477, 324);
296
			jPanel.add(getJLabel1(), null);
297
			jPanel.add(getLblTitle(), null);
298
			jPanel.add(getJScrollPane(), null);
299
		}
300

  
301
		return jPanel;
302
	}
303

  
304
	/**
305
	 * This method initializes jLabel1
306
	 *
307
	 * @return javax.swing.JLabel
308
	 */
309
	private javax.swing.JLabel getJLabel1() {
310
		if (jLabel1 == null) {
311
			jLabel1 = new javax.swing.JLabel();
312
			jLabel1.setText(PluginServices.getText(this, "nombre") + ":");
313
			jLabel1.setBounds(37, 26, 40, 15);
314
		}
315

  
316
		return jLabel1;
317
	}
318

  
319
	/**
320
	 * This method initializes lblTitle
321
	 *
322
	 * @return javax.swing.JLabel
323
	 */
324
	private javax.swing.JLabel getLblTitle() {
325
		if (lblTitle == null) {
326
			lblTitle = new javax.swing.JLabel();
327
			lblTitle.setText("-");
328
			lblTitle.setPreferredSize(new java.awt.Dimension(350, 16));
329
			lblTitle.setBounds(82, 26, 350, 16);
330
		}
331

  
332
		return lblTitle;
333
	}
334

  
335
	/**
336
	 * This method initializes jScrollPane
337
	 *
338
	 * @return javax.swing.JScrollPane
339
	 */
340
	private javax.swing.JScrollPane getJScrollPane() {
341
		if (jScrollPane == null) {
342
			jScrollPane = new javax.swing.JScrollPane();
343
			jScrollPane.setViewportView(getTxtAbstract());
344
			jScrollPane.setPreferredSize(new java.awt.Dimension(450, 60));
345
			jScrollPane.setBounds(10, 47, 450, 267);
346
		}
347

  
348
		return jScrollPane;
349
	}
350

  
351
	/**
352
	 * This method initializes txtAbstract
353
	 *
354
	 * @return javax.swing.JTextArea
355
	 */
356
	private javax.swing.JTextArea getTxtAbstract() {
357
		if (txtAbstract == null) {
358
			txtAbstract = new javax.swing.JTextArea();
359
			txtAbstract.setWrapStyleWord(true);
360
			txtAbstract.setColumns(30);
361
			txtAbstract.setLineWrap(true);
362
		}
363

  
364
		return txtAbstract;
365
	}
366

  
367
	/**
368
	 * This method initializes panelPage1
369
	 *
370
	 * @return javax.swing.JPanel
371
	 */
372
	private javax.swing.JPanel getPanelPage1() {
373
		if (panelPage1 == null) {
374
			panelPage1 = new javax.swing.JPanel();
375
			panelPage1.setLayout(null);
376
			panelPage1.setPreferredSize(new java.awt.Dimension(480, 220));
377
			panelPage1.setVisible(true);
378
			panelPage1.setBounds(15, 5, 480, 427);
379
			panelPage1.add(getJPanel1(), null);
380
			panelPage1.add(getJPanel(), null);
381
		}
382

  
383
		return panelPage1;
384
	}
385

  
386
	/**
387
	 * This method initializes btnSiguiente
388
	 *
389
	 * @return javax.swing.JButton
390
	 */
391
	private javax.swing.JButton getBtnSiguiente() {
392
		if (btnSiguiente == null) {
393
			btnSiguiente = new javax.swing.JButton();
394
			btnSiguiente.setPreferredSize(new java.awt.Dimension(100, 30));
395
			btnSiguiente.setBounds(395, 444, 100, 20);
396
			btnSiguiente.setText(PluginServices.getText(this, "siguiente"));
397
			btnSiguiente.addActionListener(new java.awt.event.ActionListener() {
398
					public void actionPerformed(java.awt.event.ActionEvent e) {
399
						if (page > 0) {
400
							// si page es mayor que cero, vamos enfocando las
401
							// sucesivas SOLAPAS del WCSParamsPanel
402
							wmsParamsPanel.avanzaTab();
403
							page = wmsParamsPanel.getIndiceSolapaActual();
404
						}
405
						page++;
406
						getPanelPage1().setVisible(false);
407
						getPanelPage2().setVisible(true);
408
						activarVisualizarBotones();
409
					}
410
				});
411
		}
412
		return btnSiguiente;
413
	}
414

  
415
	/**
416
	 * This method initializes btnAnterior
417
	 *
418
	 * @return javax.swing.JButton
419
	 */
420
	private javax.swing.JButton getBtnAnterior() {
421
		if (btnAnterior == null) {
422
			btnAnterior = new javax.swing.JButton();
423
			btnAnterior.setText(PluginServices.getText(this, "anterior"));
424
			btnAnterior.setBounds(292, 444, 100, 20);
425
			btnAnterior.setPreferredSize(new java.awt.Dimension(100, 30));
426
			btnAnterior.addActionListener(new java.awt.event.ActionListener() {
427
				public void actionPerformed(java.awt.event.ActionEvent e) {
428
					page --;
429
					if (page > 0) {
430
						// Tenemos que retroceder en el wcsParamsPanel
431
						wmsParamsPanel.retrocedeTab();
432
						page = wmsParamsPanel.getIndiceSolapaActual() + 1;
433
						activarVisualizarBotones();
434
					} else if (page==0){
435
						activarVisualizarBotones();
436
						page = 1;
437
						//wmsParamsPanel.limpiaWizard();
438
						getLblTitle().setText("-");
439
						getTxtAbstract().setText("");
440
						wmsParamsPanel.retrocedeTab();
441
						getPanelPage1().setVisible(true);
442
						getPanelPage2().setVisible(false);
443
						getBtnSiguiente().setEnabled(false);
444
						conectado = false; 
445
					}
446
					listenerSupport.callStateChanged(wmsParamsPanel.isCorretlyConfigured());
447
				}
448
			});
449
		}
450

  
451
		return btnAnterior;
452
	}
453

  
454
	/**
455
	 * This method initializes jPanel1
456
	 *
457
	 * @return javax.swing.JPanel
458
	 */
459
	private javax.swing.JPanel getJPanel1() {
460
		if (jPanel1 == null) {
461
			jPanel1 = new javax.swing.JPanel();
462
			jPanel1.setLayout(null);
463
			jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(
464
					null, PluginServices.getText(this, "servidor"),
465
					javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
466
					javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));
467
			jPanel1.setBounds(2, 5, 477, 85);
468
			jPanel1.add(getTxtHost(), null);
469
			jPanel1.add(getBtnDetalles(), null);
470
		}
471

  
472
		return jPanel1;
473
	}
474

  
475
	/**
476
	 * DOCUMENT ME!
477
	 *
478
	 * @param listener
479
	 */
480
	public void addWizardListener(WizardListener listener) {
481
		listenerSupport.addWizardListener(listener);
482
	}
483

  
484
	/**
485
	 * DOCUMENT ME!
486
	 *
487
	 * @param listener
488
	 */
489
	public void removeWizardListener(WizardListener listener) {
490
		listenerSupport.removeWizardListener(listener);
491
	}
492

  
493
	/**
494
	 * DOCUMENT ME!
495
	 *
496
	 * @return
497
	 */
498
	public WMSWizardDataSource getDataSource() {
499
		return dataSource;
500
	}
501

  
502
	/**
503
	 * DOCUMENT ME!
504
	 *
505
	 * @param source
506
	 */
507
	public void setDataSource(WMSWizardDataSource source) {
508
		dataSource = source;
509
	}
510

  
511

  
512
	/**
513
	 * DOCUMENT ME!
514
	 *
515
	 * @return DOCUMENT ME!
516
	 */
517
	public String getSRS() {
518
		return (String) wmsParamsPanel.getSRS();
519
	}
520

  
521
	/**
522
	 * DOCUMENT ME!
523
	 *
524
	 * @return DOCUMENT ME!
525
	 */
526
	public String getFormat() {
527
		return (String) wmsParamsPanel.getFormat();
528
	}
529

  
530
	/**
531
	 * DOCUMENT ME!
532
	 *
533
	 * @return DOCUMENT ME!
534
	 */
535
	public TreePath[] getSelectedLayers() {
536
		return wmsParamsPanel.getSelectedLayers();
537
	}
538

  
539
	/**
540
	 * DOCUMENT ME!
541
	 *
542
	 * @return DOCUMENT ME!
543
	 */
544
	public Rectangle2D getLayersRectangle() {
545
		return wmsParamsPanel.getLayersRectangle();
546
	}
547

  
548

  
549

  
550
	/**
551
	 * Devuelve el host que est? escrito en el cuadro de texto del host o null
552
	 * en caso de que no haya nada escrito o est? mal escrito
553
	 *
554
	 * @return URL del host
555
	 */
556
	public URL getHost() {
557
		try {
558
			return new URL(cmbHost.getModel().getSelectedItem().toString());
559
		} catch (MalformedURLException e) {
560
			return null;
561
		}
562
	}
563

  
564
	/**
565
	 * DOCUMENT ME!
566
	 *
567
	 * @return Nombre de la capa que aparece en el TOC.
568
	 */
569
	public String getLayerName() {
570
		return wmsParamsPanel.getLayerName();
571
	}
572

  
573

  
574
	/* (non-Javadoc)
575
	 * @see com.iver.cit.gvsig.gui.WizardPanel#initWizard()
576
	 */
577
	public void initWizard() {
578
		setDataSource(new WMSDataSourceAdapter()); 
579
	}
580

  
581
	/* (non-Javadoc)
582
	 * @see com.iver.cit.gvsig.gui.WizardPanel#execute()
583
	 */
584
	public void execute() {
585
	}
586

  
587
	/**
588
	 * DOCUMENT ME!
589
	 *
590
	 * @return DOCUMENT ME!
591
	 */
592
	private String getLayersQuery() {
593
		return wmsParamsPanel.getLayersQuery();
594
	}
595
	
596
	/* (non-Javadoc)
597
	 * @see com.iver.cit.gvsig.gui.WizardPanel#getLayer()
598
	 */
599
	public FLayer getLayer() {
600
		WizardWMS wms = this;
601
		FLyrWMS layer = new FLyrWMS();
602
		layer.setHost(wms.getHost());
603
		layer.setFullExtent(wms.getLayersRectangle());
604
		layer.setFormat(wms.getFormat());
605
		layer.setLayerQuery(wms.getLayersQuery());
606
		layer.setInfoLayerQuery(wms.getQueryableLayerQuery());
607
		layer.setSRS(wms.getSRS());
608
		layer.setName(wms.getLayerName());
609
		return layer;
610
	}
611

  
612
	
613
	/**
614
	 * DOCUMENT ME!
615
	 *
616
	 * @return DOCUMENT ME!
617
	 */
618
	public String getQueryableLayerQuery() {
619
		return wmsParamsPanel.getQueryableLayerQuery();
620
	}
621
}  //  @jve:decl-index=0:visual-constraint="10,10"
0 622

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/LayerInfo.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.gui.wizards;
42

  
43
import java.util.ArrayList;
44

  
45

  
46
//	Nodo[] nodos;
47
public class LayerInfo {
48
    public String text;
49
    public String name;
50
    public boolean queryable;
51
    private ArrayList srs = new ArrayList();
52
    
53
    public ArrayList hijos = new ArrayList();
54
    public LayerInfo padre;
55

  
56
    /**
57
     * DOCUMENT ME!
58
     *
59
     * @param srs DOCUMENT ME!
60
     */
61
    public void addSRS(String srs) {
62
    	String[] srsArray = srs.split(" ");
63
    	for (int i = 0; i < srsArray.length; i++){
64
			this.srs.add(srsArray[i]);
65
    	}
66
    }
67

  
68
    /**
69
     * DOCUMENT ME!
70
     *
71
     * @return DOCUMENT ME!
72
     */
73
    public ArrayList getSRSs() {
74
		ArrayList ret = new ArrayList();
75
		ret.addAll(srs);
76

  
77
        if (padre != null) {
78
            ret.addAll(padre.getSRSs());
79
        }
80

  
81
        return ret;
82
    }
83

  
84
    /**
85
     * DOCUMENT ME!
86
     *
87
     * @return DOCUMENT ME!
88
     */
89
    public String toString() {
90
        return text;
91
    }
92

  
93
    /* (non-Javadoc)
94
     * @see java.lang.Object#equals(java.lang.Object)
95
     */
96
    public boolean equals(Object obj) {
97
    	try{
98
	        LayerInfo objeto = (LayerInfo) obj;
99
			return this.name.equals(objeto.name);
100
		}catch(ClassCastException e){
101
			e.printStackTrace();
102
			return false;
103
		}catch (NullPointerException e) {
104
			return false;
105
		}
106
    }
107
}
0 108

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/LayerListModel.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.gui.wizards;
42

  
43
import java.util.ArrayList;
44
import java.util.Collection;
45

  
46
import javax.swing.AbstractListModel;
47

  
48

  
49

  
50
/**
51
 * DOCUMENT ME!
52
 *
53
 * @author Fernando Gonz?lez Cort?s
54
 */
55
public class LayerListModel extends AbstractListModel {
56
    private ArrayList nodos = new ArrayList();
57

  
58
    /**
59
     * DOCUMENT ME!
60
     *
61
     * @param elemento DOCUMENT ME!
62
     *
63
     * @return DOCUMENT ME!
64
     */
65
    public boolean addElement(LayerInfo elemento) {
66
        if (elemento == null) {
67
            return false;
68
        }
69

  
70
        for (int i = 0; i < nodos.size(); i++) {
71
            if (((LayerInfo) nodos.get(i)).equals(elemento)) {
72
                return false;
73
            }
74
        }
75

  
76
        nodos.add(elemento);
77

  
78
        fireContentsChanged(this, nodos.size() - 1, nodos.size() - 1);
79

  
80
        return true;
81
    }
82

  
83
	public void clear(){
84
		nodos.clear();
85
		fireContentsChanged(this, 0, 0);
86
	}
87

  
88
    /**
89
     * DOCUMENT ME!
90
     *
91
     * @param index DOCUMENT ME!
92
     *
93
     * @return DOCUMENT ME!
94
     */
95
    public LayerInfo delElement(int index) {
96
        LayerInfo ret = (LayerInfo) nodos.remove(index);
97
        this.fireContentsChanged(this, index, index);
98

  
99
        return ret;
100
    }
101

  
102
    /**
103
     * DOCUMENT ME!
104
     *
105
     * @param c DOCUMENT ME!
106
     */
107
    public void delElements(Collection c) {
108
        nodos.removeAll(c);
109
        this.fireContentsChanged(this, 0, nodos.size());
110
    }
111

  
112
    /**
113
     * @see javax.swing.ListModel#getSize()
114
     */
115
    public int getSize() {
116
        return nodos.size();
117
    }
118

  
119
    /**
120
     * @see javax.swing.ListModel#getElementAt(int)
121
     */
122
    public Object getElementAt(int index) {
123
        return ((LayerInfo) nodos.get(index)).text;
124
    }
125

  
126
    /**
127
     * DOCUMENT ME!
128
     *
129
     * @return DOCUMENT ME!
130
     */
131
    public LayerInfo[] getElements() {
132
        return (LayerInfo[]) nodos.toArray(new LayerInfo[0]);
133
    }
134

  
135
    /**
136
     * DOCUMENT ME!
137
     *
138
     * @param index DOCUMENT ME!
139
     *
140
     * @return DOCUMENT ME!
141
     */
142
    public LayerInfo getLayerInfo(int index) {
143
        return (LayerInfo) nodos.get(index);
144
    }
145
}
0 146

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/LayerTreeModel.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.gui.wizards;
42

  
43
import javax.swing.event.TreeModelListener;
44
import javax.swing.tree.TreeModel;
45
import javax.swing.tree.TreePath;
46

  
47
import org.gvsig.remoteClient.wms.WMSLayer;
48

  
49

  
50

  
51

  
52

  
53
public class LayerTreeModel implements TreeModel {
54

  
55
	WMSLayer root;
56

  
57
	public LayerTreeModel(WMSLayer root){
58
		this.root = root;
59
	}
60

  
61
	/* (non-Javadoc)
62
	 * @see javax.swing.tree.TreeModel#getRoot()
63
	 */
64
	public Object getRoot() {
65
		return ((WMSLayer)root);
66
	}
67

  
68
	/* (non-Javadoc)
69
	 * @see javax.swing.tree.TreeModel#getChildCount(java.lang.Object)
70
	 */
71
	public int getChildCount(Object parent) {
72
		return ((WMSLayer)parent).getChildren().size();
73
	}
74

  
75
	/* (non-Javadoc)
76
	 * @see javax.swing.tree.TreeModel#isLeaf(java.lang.Object)
77
	 */
78
	public boolean isLeaf(Object node) {
79
		return ((WMSLayer)node).getChildren().size() == 0;
80
	}
81

  
82
	/* (non-Javadoc)
83
	 * @see javax.swing.tree.TreeModel#addTreeModelListener(javax.swing.event.TreeModelListener)
84
	 */
85
	public void addTreeModelListener(TreeModelListener l) {
86
	}
87

  
88
	/* (non-Javadoc)
89
	 * @see javax.swing.tree.TreeModel#removeTreeModelListener(javax.swing.event.TreeModelListener)
90
	 */
91
	public void removeTreeModelListener(TreeModelListener l) {
92
	}
93

  
94
	/* (non-Javadoc)
95
	 * @see javax.swing.tree.TreeModel#getChild(java.lang.Object, int)
96
	 */
97
	public Object getChild(Object parent, int index) {
98
		return ((WMSLayer)((WMSLayer)parent).getChildren().get(index)).getName();
99
	}
100

  
101
	/* (non-Javadoc)
102
	 * @see javax.swing.tree.TreeModel#getIndexOfChild(java.lang.Object, java.lang.Object)
103
	 */
104
	public int getIndexOfChild(Object parent, Object child) {
105
		WMSLayer pare = (WMSLayer) parent;
106
		for (int i = 0; i < pare.getChildren().size(); i++)
107
			if (child == pare.getChildren().get(i)) return i;
108
		return -1;
109
	}
110

  
111
	/* (non-Javadoc)
112
	 * @see javax.swing.tree.TreeModel#valueForPathChanged(javax.swing.tree.TreePath, java.lang.Object)
113
	 */
114
	public void valueForPathChanged(TreePath path, Object newValue) {
115
	}
116
}
0 117

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/WMSWizardData.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package com.iver.cit.gvsig.gui.wizards;
42

  
43
import org.gvsig.remoteClient.wms.WMSLayer;
44

  
45
import com.iver.cit.gvsig.gui.wizards.WizardData;
46

  
47

  
48
/**
49
 * DOCUMENT ME!
50
 *
51
 * @author Fernando Gonz?lez Cort?s
52
 */
53
public class WMSWizardData implements WizardData {
54
    private String title;
55
    private String Abstract;
56
    private WMSLayer layer;
57
    private String[] formats;
58

  
59
    /**
60
     * DOCUMENT ME!
61
     *
62
     * @return
63
     */
64
    public String getAbstract() {
65
        return Abstract;
66
    }
67

  
68
    /**
69
     * DOCUMENT ME!
70
     *
71
     * @return
72
     */
73
    public String[] getFormats() {
74
        return formats;
75
    }
76

  
77
    /**
78
     * DOCUMENT ME!
79
     *
80
     * @return
81
     */
82
    public WMSLayer getLayer() {
83
        return layer;
84
    }
85

  
86
    /**
87
     * DOCUMENT ME!
88
     *
89
     * @return
90
     */
91
    public String getTitle() {
92
        return title;
93
    }
94

  
95
    /**
96
     * DOCUMENT ME!
97
     *
98
     * @param string
99
     */
100
    public void setAbstract(String string) {
101
        Abstract = string;
102
    }
103

  
104
    /**
105
     * DOCUMENT ME!
106
     *
107
     * @param strings
108
     */
109
    public void setFormats(String[] strings) {
110
        formats = strings;
111
    }
112

  
113
    /**
114
     * DOCUMENT ME!
115
     *
116
     * @param info
117
     */
118
    public void setLayer(WMSLayer info) {
119
        layer = info;
120
    }
121

  
122
    /**
123
     * DOCUMENT ME!
124
     *
125
     * @param string
126
     */
127
    public void setTitle(String string) {
128
        title = string;
129
    }
130
}
0 131

  
branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/WMSWizardDataSource.java
1
/*
2
 * Created on 09-sep-2004
3
 *
4
 * To change the template for this generated file go to
5
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
6
 */
7
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
8
 *
9
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
10
 *
11
 * This program is free software; you can redistribute it and/or
12
 * modify it under the terms of the GNU General Public License
13
 * as published by the Free Software Foundation; either version 2
14
 * of the License, or (at your option) any later version.
15
 *
16
 * This program is distributed in the hope that it will be useful,
17
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
 * GNU General Public License for more details.
20
 *
21
 * You should have received a copy of the GNU General Public License
22
 * along with this program; if not, write to the Free Software
23
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
24
 *
25
 * For more information, contact:
26
 *
27
 *  Generalitat Valenciana
28
 *   Conselleria d'Infraestructures i Transport
29
 *   Av. Blasco Ib??ez, 50
30
 *   46010 VALENCIA
31
 *   SPAIN
32
 *
33
 *      +34 963862235
34
 *   gvsig@gva.es
35
 *      www.gvsig.gva.es
36
 *
37
 *    or
38
 *
39
 *   IVER T.I. S.A
40
 *   Salamanca 50
41
 *   46005 Valencia
42
 *   Spain
43
 *
44
 *   +34 963163400
45
 *   dac@iver.es
46
 */
47
package com.iver.cit.gvsig.gui.wizards;
48

  
49
import java.awt.geom.Rectangle2D;
50
import java.io.IOException;
51
import java.net.URL;
52

  
53
import org.exolab.castor.xml.ValidationException;
54

  
55
import com.iver.cit.gvsig.fmap.drivers.UnsupportedVersionException;
56

  
57
/**
58
 * @author fernando
59
 *
60
 * To change the template for this generated type comment go to
61
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
62
 */
63
public interface WMSWizardDataSource {
64
	public WMSWizardData detalles(URL host)throws IllegalStateException, ValidationException, 
65
	UnsupportedVersionException, IOException ;
66
	
67
	public Rectangle2D getBoundingBox(String[] layerName, String srs);
68

  
69
}
0 70

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff