Statistics
| Revision:

gvsig-raster / org.gvsig.raster / branches / org.gvsig.raster.2.4 / org.gvsig.wms / org.gvsig.wms.swing / org.gvsig.wms.swing.impl / src / main / java / org / gvsig / wms / swing / impl / DefaultWMSParametersPanelView.java @ 8690

History | View | Annotate | Download (25 KB)

1
package org.gvsig.wms.swing.impl;
2

    
3
import java.awt.BorderLayout;
4
import java.awt.ComponentOrientation;
5
import java.awt.Container;
6
import java.awt.Dimension;
7

    
8
import javax.swing.Box;
9
import javax.swing.ButtonGroup;
10
import javax.swing.ImageIcon;
11
import javax.swing.JButton;
12
import javax.swing.JCheckBox;
13
import javax.swing.JComboBox;
14
import javax.swing.JEditorPane;
15
import javax.swing.JLabel;
16
import javax.swing.JPanel;
17
import javax.swing.JRadioButton;
18
import javax.swing.JScrollPane;
19
import javax.swing.JSlider;
20
import javax.swing.JTabbedPane;
21
import javax.swing.JTable;
22
import javax.swing.JTextField;
23
import javax.swing.JTree;
24

    
25
import com.jgoodies.forms.layout.CellConstraints;
26
import com.jgoodies.forms.layout.FormLayout;
27

    
28

    
29
public class DefaultWMSParametersPanelView extends JPanel
30
{
31
   JTabbedPane tabWMS = new JTabbedPane();
32
   JLabel lblInformation = new JLabel();
33
   JCheckBox chkAxisOrderXY = new JCheckBox();
34
   JCheckBox chkLocalCache = new JCheckBox();
35
   JButton btnConnect = new JButton();
36
   JButton btnCancel = new JButton();
37
   JComboBox cboServerList = new JComboBox();
38
   JLabel lblServer = new JLabel();
39
   JCheckBox chkRefreshCache = new JCheckBox();
40
   JCheckBox chkRefreshLocalCache = new JCheckBox();
41
   JEditorPane txtInformation = new JEditorPane();
42
   JLabel lblUser = new JLabel();
43
   JLabel lblPassword = new JLabel();
44
   JTextField txtUser = new JTextField();
45
   JTextField txtPassword = new JTextField();
46
   JLabel lblLayerName = new JLabel();
47
   JTextField txtLayerName = new JTextField();
48
   JLabel lblSelectLayers = new JLabel();
49
   JTree treeLayersSelector = new JTree();
50
   JCheckBox chkMaintainLayersStruct = new JCheckBox();
51
   JCheckBox chkShowLayerNames = new JCheckBox();
52
   JButton btnAddLayer = new JButton();
53
   JButton btnRemoveLayer = new JButton();
54
   JButton btnUpLayer = new JButton();
55
   JButton btnDownLayer = new JButton();
56
   JTable tblLayers = new JTable();
57
   JTree treeStyles = new JTree();
58
   JLabel lblSettings = new JLabel();
59
   JTable tblDimensionsSettings = new JTable();
60
   JLabel lblSettingsEditor = new JLabel();
61
   JTable tblDimensions = new JTable();
62
   JLabel lblValue = new JLabel();
63
   JSlider sldValues = new JSlider();
64
   JButton btnFirst = new JButton();
65
   JButton btnPrevious = new JButton();
66
   JTextField txtDimensionNumber = new JTextField();
67
   JButton btnNext = new JButton();
68
   JButton btnLast = new JButton();
69
   JRadioButton rdbSimpleValue = new JRadioButton();
70
   ButtonGroup buttongroup1 = new ButtonGroup();
71
   JRadioButton rdbMultipleValue = new JRadioButton();
72
   JRadioButton rdbInterval = new JRadioButton();
73
   JTextField txtSetting = new JTextField();
74
   JButton btnSet = new JButton();
75
   JLabel lblFieldValue = new JLabel();
76
   JButton btnAddSetting = new JButton();
77
   JButton btnClearSetting = new JButton();
78
   JLabel lblFormats = new JLabel();
79
   JTable tblFormats = new JTable();
80
   JCheckBox chkTransparency = new JCheckBox();
81
   JLabel lblProjection = new JLabel();
82
   JTable tblProjections = new JTable();
83
   JLabel lblInfoFormat = new JLabel();
84
   JTable tblInfoFormats = new JTable();
85

    
86
   /**
87
    * Default constructor
88
    */
89
   public DefaultWMSParametersPanelView()
90
   {
91
      initializePanel();
92
   }
93

    
94
   /**
95
    * Adds fill components to empty cells in the first row and first column of the grid.
96
    * This ensures that the grid spacing will be the same as shown in the designer.
97
    * @param cols an array of column indices in the first row where fill components should be added.
98
    * @param rows an array of row indices in the first column where fill components should be added.
99
    */
100
   void addFillComponents( Container panel, int[] cols, int[] rows )
101
   {
102
      Dimension filler = new Dimension(10,10);
103

    
104
      boolean filled_cell_11 = false;
105
      CellConstraints cc = new CellConstraints();
106
      if ( cols.length > 0 && rows.length > 0 )
107
      {
108
         if ( cols[0] == 1 && rows[0] == 1 )
109
         {
110
            /** add a rigid area  */
111
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
112
            filled_cell_11 = true;
113
         }
114
      }
115

    
116
      for( int index = 0; index < cols.length; index++ )
117
      {
118
         if ( cols[index] == 1 && filled_cell_11 )
119
         {
120
            continue;
121
         }
122
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
123
      }
124

    
125
      for( int index = 0; index < rows.length; index++ )
126
      {
127
         if ( rows[index] == 1 && filled_cell_11 )
128
         {
129
            continue;
130
         }
131
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
132
      }
133

    
134
   }
135

    
136
   /**
137
    * Helper method to load an image file from the CLASSPATH
138
    * @param imageName the package and name of the file to load relative to the CLASSPATH
139
    * @return an ImageIcon instance with the specified image file
140
    * @throws IllegalArgumentException if the image resource cannot be loaded.
141
    */
142
   public ImageIcon loadImage( String imageName )
143
   {
144
      try
145
      {
146
         ClassLoader classloader = getClass().getClassLoader();
147
         java.net.URL url = classloader.getResource( imageName );
148
         if ( url != null )
149
         {
150
            ImageIcon icon = new ImageIcon( url );
151
            return icon;
152
         }
153
      }
154
      catch( Exception e )
155
      {
156
         e.printStackTrace();
157
      }
158
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
159
   }
160

    
161
   /**
162
    * Method for recalculating the component orientation for
163
    * right-to-left Locales.
164
    * @param orientation the component orientation to be applied
165
    */
166
   public void applyComponentOrientation( ComponentOrientation orientation )
167
   {
168
      // Not yet implemented...
169
      // I18NUtils.applyComponentOrientation(this, orientation);
170
      super.applyComponentOrientation(orientation);
171
   }
172

    
173
   public JPanel createPanel()
174
   {
175
      JPanel jpanel1 = new JPanel();
176
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
177
      CellConstraints cc = new CellConstraints();
178
      jpanel1.setLayout(formlayout1);
179

    
180
      tabWMS.setName("tabWMS");
181
      tabWMS.addTab("_connection",null,createPanel1());
182
      tabWMS.addTab("_layers",null,createPanel3());
183
      tabWMS.addTab("_styles",null,createPanel5());
184
      tabWMS.addTab("_dimensions",null,createPanel6());
185
      tabWMS.addTab("_formats",null,createPanel8());
186
      jpanel1.add(tabWMS,new CellConstraints(2,2,1,1,CellConstraints.FILL,CellConstraints.FILL));
187

    
188
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
189
      return jpanel1;
190
   }
191

    
192
   public JPanel createPanel1()
193
   {
194
      JPanel jpanel1 = new JPanel();
195
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
196
      CellConstraints cc = new CellConstraints();
197
      jpanel1.setLayout(formlayout1);
198

    
199
      lblInformation.setName("lblInformation");
200
      lblInformation.setText("_information");
201
      lblInformation.setToolTipText("_information");
202
      jpanel1.add(lblInformation,cc.xywh(2,18,5,1));
203

    
204
      chkAxisOrderXY.setActionCommand("_assumption_axis_order_xy");
205
      chkAxisOrderXY.setName("chkAxisOrderXY");
206
      chkAxisOrderXY.setText("_assumption_axis_order_xy");
207
      chkAxisOrderXY.setToolTipText("_assumption_axis_order_xy");
208
      jpanel1.add(chkAxisOrderXY,cc.xywh(2,16,5,1));
209

    
210
      chkLocalCache.setActionCommand("JCheckBox");
211
      chkLocalCache.setName("chkLocalCache");
212
      chkLocalCache.setText("_use_local_tile_cache");
213
      chkLocalCache.setToolTipText("_use_local_tile_cache");
214
      jpanel1.add(chkLocalCache,cc.xywh(2,12,5,1));
215

    
216
      btnConnect.setActionCommand("_connect");
217
      btnConnect.setName("btnConnect");
218
      btnConnect.setText("_connect");
219
      btnConnect.setToolTipText("_try_connect_to_the_server");
220
      jpanel1.add(btnConnect,cc.xy(4,10));
221

    
222
      btnCancel.setActionCommand("_cancel");
223
      btnCancel.setName("btnCancel");
224
      btnCancel.setText("_cancel");
225
      btnCancel.setToolTipText("_cancel_connection");
226
      jpanel1.add(btnCancel,cc.xy(6,10));
227

    
228
      cboServerList.setEditable(true);
229
      cboServerList.setName("cboServerList");
230
      cboServerList.setRequestFocusEnabled(false);
231
      cboServerList.setToolTipText("_server_connection_string");
232
      jpanel1.add(cboServerList,cc.xywh(2,4,5,1));
233

    
234
      lblServer.setName("lblServer");
235
      lblServer.setText("_server");
236
      lblServer.setToolTipText("_server_conexion_string");
237
      jpanel1.add(lblServer,cc.xywh(2,2,5,1));
238

    
239
      chkRefreshCache.setActionCommand("JCheckBox");
240
      chkRefreshCache.setName("chkRefreshCache");
241
      chkRefreshCache.setText("_refresh_service_cache");
242
      chkRefreshCache.setToolTipText("_refresh_service_cache");
243
      jpanel1.add(chkRefreshCache,cc.xywh(2,8,5,1));
244

    
245
      chkRefreshLocalCache.setActionCommand("JCheckBox");
246
      chkRefreshLocalCache.setName("chkRefreshLocalCache");
247
      chkRefreshLocalCache.setText("_refresh_local_tile_cache");
248
      chkRefreshLocalCache.setToolTipText("_refresh_local_tile_cache");
249
      jpanel1.add(chkRefreshLocalCache,cc.xywh(2,14,5,1));
250

    
251
      txtInformation.setContentType("text/html");
252
      txtInformation.setName("txtInformation");
253
      txtInformation.setText("<html>\n  <head>\n\n  </head>\n  <body>\n    <p style=\"margin-top: 0\">\n      \n    </p>\n  </body>\n</html>\n");
254
      JScrollPane jscrollpane1 = new JScrollPane();
255
      jscrollpane1.setViewportView(txtInformation);
256
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
257
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
258
      jpanel1.add(jscrollpane1,new CellConstraints(2,20,5,1,CellConstraints.FILL,CellConstraints.FILL));
259

    
260
      jpanel1.add(createPanel2(),cc.xywh(2,6,5,1));
261
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21 });
262
      return jpanel1;
263
   }
264

    
265
   public JPanel createPanel2()
266
   {
267
      JPanel jpanel1 = new JPanel();
268
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
269
      CellConstraints cc = new CellConstraints();
270
      jpanel1.setLayout(formlayout1);
271

    
272
      lblUser.setName("lblUser");
273
      lblUser.setText("_user");
274
      lblUser.setToolTipText("_user");
275
      jpanel1.add(lblUser,cc.xy(1,1));
276

    
277
      lblPassword.setName("lblPassword");
278
      lblPassword.setText("_password");
279
      lblPassword.setToolTipText("_password");
280
      jpanel1.add(lblPassword,cc.xy(1,3));
281

    
282
      txtUser.setName("txtUser");
283
      txtUser.setToolTipText("_user");
284
      jpanel1.add(txtUser,cc.xy(3,1));
285

    
286
      txtPassword.setName("txtPassword");
287
      txtPassword.setToolTipText("_password");
288
      jpanel1.add(txtPassword,cc.xy(3,3));
289

    
290
      addFillComponents(jpanel1,new int[]{ 2 },new int[]{ 2 });
291
      return jpanel1;
292
   }
293

    
294
   public JPanel createPanel3()
295
   {
296
      JPanel jpanel1 = new JPanel();
297
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
298
      CellConstraints cc = new CellConstraints();
299
      jpanel1.setLayout(formlayout1);
300

    
301
      lblLayerName.setName("lblLayerName");
302
      lblLayerName.setText("_layer_name");
303
      lblLayerName.setToolTipText("_layer_name");
304
      jpanel1.add(lblLayerName,cc.xy(2,2));
305

    
306
      txtLayerName.setName("txtLayerName");
307
      txtLayerName.setToolTipText("_layer_name");
308
      jpanel1.add(txtLayerName,cc.xy(2,4));
309

    
310
      lblSelectLayers.setName("lblSelectLayers");
311
      lblSelectLayers.setText("_select_layers");
312
      lblSelectLayers.setToolTipText("_select_layers");
313
      jpanel1.add(lblSelectLayers,cc.xy(2,6));
314

    
315
      treeLayersSelector.setName("treeLayersSelector");
316
      treeLayersSelector.setToolTipText("_select_layers");
317
      JScrollPane jscrollpane1 = new JScrollPane();
318
      jscrollpane1.setViewportView(treeLayersSelector);
319
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
320
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
321
      jpanel1.add(jscrollpane1,new CellConstraints(2,8,1,1,CellConstraints.FILL,CellConstraints.FILL));
322

    
323
      chkMaintainLayersStruct.setActionCommand("_maintain_layers_struct");
324
      chkMaintainLayersStruct.setName("chkMaintainLayersStruct");
325
      chkMaintainLayersStruct.setText("_maintain_layers_struct");
326
      chkMaintainLayersStruct.setToolTipText("_maintain_layers_struct");
327
      jpanel1.add(chkMaintainLayersStruct,cc.xy(2,12));
328

    
329
      chkShowLayerNames.setActionCommand("_show_layer_names");
330
      chkShowLayerNames.setName("chkShowLayerNames");
331
      chkShowLayerNames.setText("_show_layer_names");
332
      chkShowLayerNames.setToolTipText("_show_layer_names");
333
      jpanel1.add(chkShowLayerNames,cc.xy(2,14));
334

    
335
      jpanel1.add(createPanel4(),new CellConstraints(2,10,1,1,CellConstraints.FILL,CellConstraints.FILL));
336
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 });
337
      return jpanel1;
338
   }
339

    
340
   public JPanel createPanel4()
341
   {
342
      JPanel jpanel1 = new JPanel();
343
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:2DLU:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:GROW(1.0)");
344
      CellConstraints cc = new CellConstraints();
345
      jpanel1.setLayout(formlayout1);
346

    
347
      btnAddLayer.setActionCommand("JButton");
348
      btnAddLayer.setName("btnAddLayer");
349
      btnAddLayer.setText("_add_layer");
350
      btnAddLayer.setToolTipText("_add_layer");
351
      jpanel1.add(btnAddLayer,cc.xy(3,2));
352

    
353
      btnRemoveLayer.setActionCommand("JButton");
354
      btnRemoveLayer.setName("btnRemoveLayer");
355
      btnRemoveLayer.setText("_remove_layer");
356
      btnRemoveLayer.setToolTipText("_remove_layer");
357
      jpanel1.add(btnRemoveLayer,cc.xy(3,4));
358

    
359
      btnUpLayer.setActionCommand("_up_layer");
360
      btnUpLayer.setName("btnUpLayer");
361
      btnUpLayer.setText("_up_layer");
362
      btnUpLayer.setToolTipText("_up_layer");
363
      jpanel1.add(btnUpLayer,cc.xy(3,6));
364

    
365
      btnDownLayer.setActionCommand("_down_layer");
366
      btnDownLayer.setName("btnDownLayer");
367
      btnDownLayer.setText("_down_layer");
368
      btnDownLayer.setToolTipText("_down_layer");
369
      jpanel1.add(btnDownLayer,cc.xy(3,8));
370

    
371
      tblLayers.setName("tblLayers");
372
      tblLayers.setToolTipText("_layers");
373
      JScrollPane jscrollpane1 = new JScrollPane();
374
      jscrollpane1.setViewportView(tblLayers);
375
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
376
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
377
      jpanel1.add(jscrollpane1,cc.xywh(1,1,1,9));
378

    
379
      addFillComponents(jpanel1,new int[]{ 2,3 },new int[]{ 2,3,4,5,6,7,8,9 });
380
      return jpanel1;
381
   }
382

    
383
   public JPanel createPanel5()
384
   {
385
      JPanel jpanel1 = new JPanel();
386
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
387
      CellConstraints cc = new CellConstraints();
388
      jpanel1.setLayout(formlayout1);
389

    
390
      treeStyles.setName("treeStyles");
391
      JScrollPane jscrollpane1 = new JScrollPane();
392
      jscrollpane1.setViewportView(treeStyles);
393
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
394
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
395
      jpanel1.add(jscrollpane1,new CellConstraints(2,2,1,1,CellConstraints.FILL,CellConstraints.FILL));
396

    
397
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
398
      return jpanel1;
399
   }
400

    
401
   public JPanel createPanel6()
402
   {
403
      JPanel jpanel1 = new JPanel();
404
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE");
405
      CellConstraints cc = new CellConstraints();
406
      jpanel1.setLayout(formlayout1);
407

    
408
      lblSettings.setName("lblSettings");
409
      lblSettings.setText("_settings");
410
      lblSettings.setToolTipText("_settings");
411
      jpanel1.add(lblSettings,cc.xy(2,2));
412

    
413
      tblDimensionsSettings.setName("tblDimensionsSettings");
414
      tblDimensionsSettings.setToolTipText("_settings");
415
      JScrollPane jscrollpane1 = new JScrollPane();
416
      jscrollpane1.setViewportView(tblDimensionsSettings);
417
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
418
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
419
      jpanel1.add(jscrollpane1,cc.xywh(2,4,3,1));
420

    
421
      lblSettingsEditor.setName("lblSettingsEditor");
422
      lblSettingsEditor.setText("_settings_editor");
423
      lblSettingsEditor.setToolTipText("_settings_editor");
424
      jpanel1.add(lblSettingsEditor,cc.xy(2,6));
425

    
426
      tblDimensions.setName("tblDimensions");
427
      tblDimensions.setToolTipText("_dimensions");
428
      JScrollPane jscrollpane2 = new JScrollPane();
429
      jscrollpane2.setViewportView(tblDimensions);
430
      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
431
      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
432
      jpanel1.add(jscrollpane2,cc.xy(2,8));
433

    
434
      jpanel1.add(createPanel7(),cc.xy(4,8));
435
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 });
436
      return jpanel1;
437
   }
438

    
439
   public JPanel createPanel7()
440
   {
441
      JPanel jpanel1 = new JPanel();
442
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
443
      CellConstraints cc = new CellConstraints();
444
      jpanel1.setLayout(formlayout1);
445

    
446
      lblValue.setName("lblValue");
447
      lblValue.setText("_value");
448
      lblValue.setToolTipText("_value");
449
      jpanel1.add(lblValue,cc.xywh(1,1,3,1));
450

    
451
      sldValues.setMajorTickSpacing(20);
452
      sldValues.setName("sldValues");
453
      sldValues.setPaintLabels(true);
454
      sldValues.setPaintTicks(true);
455
      jpanel1.add(sldValues,cc.xywh(1,3,11,1));
456

    
457
      btnFirst.setActionCommand("_first");
458
      btnFirst.setName("btnFirst");
459
      btnFirst.setText("_first");
460
      btnFirst.setToolTipText("_first");
461
      jpanel1.add(btnFirst,cc.xy(1,5));
462

    
463
      btnPrevious.setActionCommand("_previous");
464
      btnPrevious.setName("btnPrevious");
465
      btnPrevious.setText("_previous");
466
      btnPrevious.setToolTipText("_previous");
467
      jpanel1.add(btnPrevious,cc.xy(3,5));
468

    
469
      txtDimensionNumber.setName("txtDimensionNumber");
470
      jpanel1.add(txtDimensionNumber,cc.xywh(5,5,3,1));
471

    
472
      btnNext.setActionCommand("_next");
473
      btnNext.setName("btnNext");
474
      btnNext.setText("_next");
475
      btnNext.setToolTipText("_next");
476
      jpanel1.add(btnNext,cc.xy(9,5));
477

    
478
      btnLast.setActionCommand("_last");
479
      btnLast.setName("btnLast");
480
      btnLast.setText("_last");
481
      btnLast.setToolTipText("_last");
482
      jpanel1.add(btnLast,cc.xy(11,5));
483

    
484
      rdbSimpleValue.setActionCommand("_simple_value");
485
      rdbSimpleValue.setName("rdbSimpleValue");
486
      rdbSimpleValue.setText("_simple_value");
487
      rdbSimpleValue.setToolTipText("_simple_value");
488
      buttongroup1.add(rdbSimpleValue);
489
      jpanel1.add(rdbSimpleValue,cc.xywh(1,7,11,1));
490

    
491
      rdbMultipleValue.setActionCommand("_multiple_value");
492
      rdbMultipleValue.setName("rdbMultipleValue");
493
      rdbMultipleValue.setText("_multiple_value");
494
      rdbMultipleValue.setToolTipText("_multiple_value");
495
      buttongroup1.add(rdbMultipleValue);
496
      jpanel1.add(rdbMultipleValue,cc.xywh(1,9,11,1));
497

    
498
      rdbInterval.setActionCommand("_interval");
499
      rdbInterval.setName("rdbInterval");
500
      rdbInterval.setText("_interval");
501
      rdbInterval.setToolTipText("_interval");
502
      buttongroup1.add(rdbInterval);
503
      jpanel1.add(rdbInterval,cc.xywh(1,11,11,1));
504

    
505
      txtSetting.setName("txtSetting");
506
      txtSetting.setToolTipText("_setting");
507
      jpanel1.add(txtSetting,cc.xywh(1,15,11,1));
508

    
509
      btnSet.setActionCommand("_set");
510
      btnSet.setName("btnSet");
511
      btnSet.setText("_set");
512
      btnSet.setToolTipText("_set");
513
      jpanel1.add(btnSet,cc.xywh(1,17,5,1));
514

    
515
      lblFieldValue.setName("lblFieldValue");
516
      lblFieldValue.setToolTipText("_value");
517
      jpanel1.add(lblFieldValue,cc.xywh(5,1,7,1));
518

    
519
      btnAddSetting.setActionCommand("_add");
520
      btnAddSetting.setName("btnAddSetting");
521
      btnAddSetting.setText("_add");
522
      btnAddSetting.setToolTipText("_add_setting");
523
      jpanel1.add(btnAddSetting,cc.xywh(1,13,5,1));
524

    
525
      btnClearSetting.setActionCommand("_clear");
526
      btnClearSetting.setName("btnClearSetting");
527
      btnClearSetting.setText("_clear");
528
      btnClearSetting.setToolTipText("_clear_setting");
529
      jpanel1.add(btnClearSetting,cc.xywh(7,13,5,1));
530

    
531
      addFillComponents(jpanel1,new int[]{ 2,3,4,6,7,8,9,10,11 },new int[]{ 2,4,6,8,10,12,14,16 });
532
      return jpanel1;
533
   }
534

    
535
   public JPanel createPanel8()
536
   {
537
      JPanel jpanel1 = new JPanel();
538
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
539
      CellConstraints cc = new CellConstraints();
540
      jpanel1.setLayout(formlayout1);
541

    
542
      lblFormats.setName("lblFormats");
543
      lblFormats.setText("_select_format");
544
      lblFormats.setToolTipText("_select_format");
545
      jpanel1.add(lblFormats,cc.xy(2,2));
546

    
547
      tblFormats.setName("tblFormats");
548
      tblFormats.setToolTipText("_select_format");
549
      JScrollPane jscrollpane1 = new JScrollPane();
550
      jscrollpane1.setViewportView(tblFormats);
551
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
552
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
553
      jpanel1.add(jscrollpane1,new CellConstraints(2,4,1,1,CellConstraints.FILL,CellConstraints.FILL));
554

    
555
      chkTransparency.setActionCommand("_transparency");
556
      chkTransparency.setName("chkTransparency");
557
      chkTransparency.setText("_transparency");
558
      chkTransparency.setToolTipText("_transparency");
559
      jpanel1.add(chkTransparency,cc.xy(2,6));
560

    
561
      lblProjection.setName("lblProjection");
562
      lblProjection.setText("_select_crs");
563
      lblProjection.setToolTipText("_select_crs");
564
      jpanel1.add(lblProjection,cc.xy(2,8));
565

    
566
      tblProjections.setName("tblProjections");
567
      tblProjections.setToolTipText("_select_crs");
568
      JScrollPane jscrollpane2 = new JScrollPane();
569
      jscrollpane2.setViewportView(tblProjections);
570
      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
571
      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
572
      jpanel1.add(jscrollpane2,new CellConstraints(2,10,1,1,CellConstraints.FILL,CellConstraints.FILL));
573

    
574
      lblInfoFormat.setName("lblInfoFormat");
575
      lblInfoFormat.setText("_select_info_format");
576
      lblInfoFormat.setToolTipText("_select_info_format");
577
      jpanel1.add(lblInfoFormat,cc.xy(2,12));
578

    
579
      tblInfoFormats.setName("tblInfoFormats");
580
      tblInfoFormats.setToolTipText("_select_info_format");
581
      JScrollPane jscrollpane3 = new JScrollPane();
582
      jscrollpane3.setViewportView(tblInfoFormats);
583
      jscrollpane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
584
      jscrollpane3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
585
      jpanel1.add(jscrollpane3,new CellConstraints(2,14,1,1,CellConstraints.FILL,CellConstraints.FILL));
586

    
587
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 });
588
      return jpanel1;
589
   }
590

    
591
   /**
592
    * Initializer
593
    */
594
   protected void initializePanel()
595
   {
596
      setLayout(new BorderLayout());
597
      add(createPanel(), BorderLayout.CENTER);
598
   }
599

    
600

    
601
}