Statistics
| Revision:

root / trunk / extensions / extWFS2 / src / com / iver / cit / gvsig / wfs / WFSClientExtension.java @ 14818

History | View | Annotate | Download (6.04 KB)

1
package com.iver.cit.gvsig.wfs;
2

    
3
import com.iver.andami.PluginServices;
4
import com.iver.andami.plugins.Extension;
5
import com.iver.cit.gvsig.AddLayer;
6
import com.iver.cit.gvsig.fmap.layers.FLyrWFS;
7
import com.iver.cit.gvsig.gui.toc.SuitableWFSLegend;
8
import com.iver.cit.gvsig.gui.toc.WFSPropsTocMenuEntry;
9
import com.iver.cit.gvsig.gui.toc.WFSVectorialPropsTocMenuEntry;
10
import com.iver.cit.gvsig.gui.wizards.WFSWizard;
11
import com.iver.cit.gvsig.project.documents.view.toc.gui.FPopupMenu;
12
import com.iver.utiles.extensionPoints.ExtensionPoints;
13
import com.iver.utiles.extensionPoints.ExtensionPointsSingleton;
14

    
15
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
16
 *
17
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
18
 *
19
 * This program is free software; you can redistribute it and/or
20
 * modify it under the terms of the GNU General Public License
21
 * as published by the Free Software Foundation; either version 2
22
 * of the License, or (at your option) any later version.
23
 *
24
 * This program is distributed in the hope that it will be useful,
25
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
 * GNU General Public License for more details.
28
 *
29
 * You should have received a copy of the GNU General Public License
30
 * along with this program; if not, write to the Free Software
31
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
32
 *
33
 * For more information, contact:
34
 *
35
 *  Generalitat Valenciana
36
 *   Conselleria d'Infraestructures i Transport
37
 *   Av. Blasco Ib??ez, 50
38
 *   46010 VALENCIA
39
 *   SPAIN
40
 *
41
 *      +34 963862235
42
 *   gvsig@gva.es
43
 *      www.gvsig.gva.es
44
 *
45
 *    or
46
 *
47
 *   IVER T.I. S.A
48
 *   Salamanca 50
49
 *   46005 Valencia
50
 *   Spain
51
 *
52
 *   +34 963163400
53
 *   dac@iver.es
54
 */
55
/* CVS MESSAGES:
56
 *
57
 * $Id: WFSClientExtension.java 14818 2007-10-22 12:14:28Z jmvivo $
58
 * $Log: WFSClientExtension.java,v $
59
 * Revision 1.9  2007/09/04 10:53:52  caballero
60
 * show page
61
 *
62
 * Revision 1.8  2006/10/02 09:09:45  jorpiell
63
 * Cambios del 10 copiados al head
64
 *
65
 * Revision 1.6  2006/09/05 15:41:52  jorpiell
66
 * A?adida la funcionalidad de cargar WFS desde el cat?logo
67
 *
68
 * Revision 1.5  2006/07/05 12:04:50  jorpiell
69
 * A?adida la opci?n de propiedades vectoriales
70
 *
71
 * Revision 1.4  2006/06/21 12:35:45  jorpiell
72
 * Se ha a?adido la ventana de propiedades. Esto implica a?adir listeners por todos los paneles. Adem?s no se muestra la geomatr?a en la lista de atributos y se muestran ?nicamnete los que se van a descargar
73
 *
74
 * Revision 1.3  2006/05/19 12:57:34  jorpiell
75
 * Ahora hereda de Extension
76
 *
77
 * Revision 1.1  2006/04/19 12:50:16  jorpiell
78
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
79
 *
80
 *
81
 */
82
/**
83
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
84
 */
85
public class WFSClientExtension extends Extension{
86

    
87
        public void initialize() {
88
                System.out.println("A?ado Wizard WFS2.");
89

    
90
                FPopupMenu.addEntry(new WFSPropsTocMenuEntry());
91
                FPopupMenu.addEntry(new WFSVectorialPropsTocMenuEntry());
92

    
93
                // Adds a new tab to the "add layer" wizard for WFS layer creation
94
                AddLayer.addWizard(WFSWizard.class);
95
                ExtensionPoints extensionPoints = ExtensionPointsSingleton.getInstance();
96
            extensionPoints.add("CatalogLayers","OGC:WFS",FLyrWFS.class);
97
            extensionPoints.add("IsSuitable",SuitableWFSLegend.class.getName(),SuitableWFSLegend.class);
98
            initilizeIcons();
99
        }
100

    
101
        public void execute(String actionCommand) {
102
                // TODO Auto-generated method stub
103

    
104
        }
105

    
106
        public boolean isEnabled() {
107
                // TODO Auto-generated method stub
108
                return false;
109
        }
110

    
111
        public boolean isVisible() {
112
                // TODO Auto-generated method stub
113
                return false;
114
        }
115

    
116
        void initilizeIcons(){
117
                // FLyrWFS.java
118
                PluginServices.getIconTheme().register(
119
                            "WFS-icolayer",
120
                            this.getClass().getClassLoader().getResource("images/icoLayer.png")
121
                    );
122

    
123
                // WFSAreaPanel.java
124
                PluginServices.getIconTheme().register(
125
                            "edit-undo",
126
                            this.getClass().getClassLoader().getResource("images/edit-undo.png")
127
                    );
128

    
129
                // WFSAreaPanel.java
130
                PluginServices.getIconTheme().register(
131
                            "WFS-move",
132
                            this.getClass().getClassLoader().getResource("images/move.png")
133
                    );
134

    
135
                // WFSAreaPanel.java
136
                PluginServices.getIconTheme().register(
137
                            "WFS-scaling",
138
                            this.getClass().getClassLoader().getResource("images/scaling.png")
139
                    );
140

    
141
                // WFSAreaPanel.java
142
                PluginServices.getIconTheme().register(
143
                            "view-pan",
144
                            this.getClass().getClassLoader().getResource("images/Pan.png")
145
                    );
146

    
147
                // WFSAreaPanel.java
148
                PluginServices.getIconTheme().register(
149
                            "view-zoom-in",
150
                            this.getClass().getClassLoader().getResource("images/ZoomIn.png")
151
                    );
152

    
153
                // WFSAreaPanel.java
154
                PluginServices.getIconTheme().register(
155
                            "view-zoom-out",
156
                            this.getClass().getClassLoader().getResource("images/ZoomOut.png")
157
                    );
158

    
159
                // WFSAreaPanel.java
160
                PluginServices.getIconTheme().register(
161
                            "view-zoom-back",
162
                            this.getClass().getClassLoader().getResource("images/ZoomPrevio.png")
163
                    );
164

    
165
                // WFSAreaPanel.java
166
                PluginServices.getIconTheme().register(
167
                            "view-zoom-map-contents",
168
                            this.getClass().getClassLoader().getResource("images/MapContents.png")
169
                    );
170

    
171
                // WFSAreaPanel.java
172
                PluginServices.getIconTheme().register(
173
                            "view-zoom-mas",
174
                            this.getClass().getClassLoader().getResource("images/zoommas.png")
175
                    );
176

    
177
                //                 WFSAreaPanel.java
178
                PluginServices.getIconTheme().register(
179
                            "view-zoom-menos",
180
                            this.getClass().getClassLoader().getResource("images/zoommenos.png")
181
                    );
182

    
183
                //                 WFSAreaPanel.java
184
                PluginServices.getIconTheme().register(
185
                            "view-query-distance",
186
                            this.getClass().getClassLoader().getResource("images/Distancia.png")
187
                    );
188

    
189
                //                 WFSAreaPanel.java
190
                PluginServices.getIconTheme().register(
191
                            "view-query-area",
192
                            this.getClass().getClassLoader().getResource("images/Poligono16.png")
193
                    );
194

    
195
                //                 WFSAreaPanel.java
196
                PluginServices.getIconTheme().register(
197
                            "view-previsualize-area",
198
                            this.getClass().getClassLoader().getResource("images/to_previsualize_area.png")
199
                    );
200

    
201

    
202

    
203
        }
204
}