Statistics
| Revision:

root / trunk / extensions / extGeoProcessing / src / com / iver / gvsig / geoprocessing / gui / GeoProcessingOperationSelectorPanel.java @ 2999

History | View | Annotate | Download (5.62 KB)

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

    
46
import javax.swing.JPanel;
47

    
48
import javax.swing.ButtonGroup;
49
import javax.swing.JLabel;
50
import javax.swing.JRadioButton;
51
import javax.swing.BoxLayout;
52

    
53
import com.iver.andami.PluginServices;
54
/**
55
 * @author jmorell
56
 */
57
public class GeoProcessingOperationSelectorPanel extends JPanel {
58

    
59
        /**
60
     * 
61
     */
62
    private static final long serialVersionUID = 1L;
63
    private JLabel jLabel = null;
64
        private JRadioButton jRadioButton = null;
65
        private JRadioButton jRadioButton1 = null;
66
        private JRadioButton jRadioButton2 = null;
67
        private JRadioButton jRadioButton3 = null;
68
        private JRadioButton jRadioButton4 = null;
69
        private JRadioButton jRadioButton5 = null;
70
        private JRadioButton jRadioButton6 = null;
71
        private ButtonGroup buttonGroup = null;
72
        /**
73
         * This is the default constructor
74
         */
75
        public GeoProcessingOperationSelectorPanel() {
76
                super();
77
                initialize();
78
        }
79
        /**
80
         * This method initializes this
81
         * 
82
         * @return void
83
         */
84
        private  void initialize() {
85
                jLabel = new JLabel();
86
                this.setLayout(null);
87
                this.setSize(229, 203);
88
                jLabel.setText(PluginServices.getText(this,"Elija_una_herramienta_de_analisis") + ":");
89
                jLabel.setBounds(6, 7, 200, 15);
90
                this.add(jLabel, null);
91
                this.add(getJRadioButton(), null);
92
                this.add(getJRadioButton6(), null);
93
                this.add(getJRadioButton1(), null);
94
                this.add(getJRadioButton2(), null);
95
                this.add(getJRadioButton3(), null);
96
                this.add(getJRadioButton4(), null);
97
                this.add(getJRadioButton5(), null);
98
                confButtonGroup();
99
                getJRadioButton().setSelected(true);
100
        }
101
        private void confButtonGroup() {
102
                if (buttonGroup == null) {
103
                        buttonGroup = new ButtonGroup();
104
                        buttonGroup.add(getJRadioButton());
105
                        buttonGroup.add(getJRadioButton1());
106
                        buttonGroup.add(getJRadioButton2());
107
                        buttonGroup.add(getJRadioButton3());
108
                        buttonGroup.add(getJRadioButton4());
109
                        buttonGroup.add(getJRadioButton5());
110
                        buttonGroup.add(getJRadioButton6());
111
                }
112
        }
113
        /**
114
         * This method initializes jRadioButton        
115
         *         
116
         * @return javax.swing.JRadioButton        
117
         */    
118
        private JRadioButton getJRadioButton() {
119
                if (jRadioButton == null) {
120
                        jRadioButton = new JRadioButton();
121
                        jRadioButton.setText(PluginServices.getText(this,"Area_de_influencia"));
122
                        jRadioButton.setBounds(6, 29, 130, 23);
123
                }
124
                return jRadioButton;
125
        }
126
        /**
127
         * This method initializes jRadioButton1        
128
         *         
129
         * @return javax.swing.JRadioButton        
130
         */    
131
        private JRadioButton getJRadioButton1() {
132
                if (jRadioButton1 == null) {
133
                        jRadioButton1 = new JRadioButton();
134
                        jRadioButton1.setText(PluginServices.getText(this,"Disolver"));
135
                        jRadioButton1.setBounds(6, 75, 67, 23);
136
                }
137
                return jRadioButton1;
138
        }
139
        /**
140
         * This method initializes jRadioButton2        
141
         *         
142
         * @return javax.swing.JRadioButton        
143
         */    
144
        private JRadioButton getJRadioButton2() {
145
                if (jRadioButton2 == null) {
146
                        jRadioButton2 = new JRadioButton();
147
                        jRadioButton2.setText(PluginServices.getText(this,"Juntar"));
148
                        jRadioButton2.setBounds(6, 98, 55, 23);
149
                }
150
                return jRadioButton2;
151
        }
152
        /**
153
         * This method initializes jRadioButton3        
154
         *         
155
         * @return javax.swing.JRadioButton        
156
         */    
157
        private JRadioButton getJRadioButton3() {
158
                if (jRadioButton3 == null) {
159
                        jRadioButton3 = new JRadioButton();
160
                        jRadioButton3.setText(PluginServices.getText(this,"Interseccion"));
161
                        jRadioButton3.setBounds(6, 121, 93, 23);
162
                }
163
                return jRadioButton3;
164
        }
165
        /**
166
         * This method initializes jRadioButton4        
167
         *         
168
         * @return javax.swing.JRadioButton        
169
         */    
170
        private JRadioButton getJRadioButton4() {
171
                if (jRadioButton4 == null) {
172
                        jRadioButton4 = new JRadioButton();
173
                        jRadioButton4.setText(PluginServices.getText(this,"Union"));
174
                        jRadioButton4.setBounds(6, 144, 53, 23);
175
                }
176
                return jRadioButton4;
177
        }
178
        /**
179
         * This method initializes jRadioButton5        
180
         *         
181
         * @return javax.swing.JRadioButton        
182
         */    
183
        private JRadioButton getJRadioButton5() {
184
                if (jRadioButton5 == null) {
185
                        jRadioButton5 = new JRadioButton();
186
                        jRadioButton5.setText(PluginServices.getText(this,"Enlace_espacial"));
187
                        jRadioButton5.setBounds(6, 167, 106, 23);
188
                }
189
                return jRadioButton5;
190
        }
191
        /**
192
         * This method initializes jRadioButton6        
193
         *         
194
         * @return javax.swing.JRadioButton        
195
         */    
196
        private JRadioButton getJRadioButton6() {
197
                if (jRadioButton6 == null) {
198
                        jRadioButton6 = new JRadioButton();
199
                        jRadioButton6.setText(PluginServices.getText(this,"Recortar"));
200
                        jRadioButton6.setBounds(6, 52, 79, 23);
201
                }
202
                return jRadioButton6;
203
        }
204
       }  //  @jve:decl-index=0:visual-constraint="10,10"