svn-gvsig-desktop / trunk / extensions / extRasterTools / src / com / iver / cit / gvsig / rasterTools / saveRaster / pruebas2 / MethodSaveRasterSelectorPanel.java @ 4267
History | View | Annotate | Download (2.84 KB)
1 |
package com.iver.cit.gvsig.rasterTools.saveRaster.pruebas2; |
---|---|
2 |
|
3 |
import javax.swing.JPanel; |
4 |
import java.awt.GridBagLayout; |
5 |
import javax.swing.JRadioButton; |
6 |
import java.awt.GridBagConstraints; |
7 |
import java.awt.FlowLayout; |
8 |
|
9 |
public class MethodSaveRasterSelectorPanel extends JPanel { |
10 |
|
11 |
private JPanel pMethodSelector = null; |
12 |
private JRadioButton rbScale = null; |
13 |
private JRadioButton rbMtsPixel = null; |
14 |
private JRadioButton rbSize = null; |
15 |
|
16 |
/**
|
17 |
* This is the default constructor
|
18 |
*/
|
19 |
public MethodSaveRasterSelectorPanel() {
|
20 |
super();
|
21 |
initialize(); |
22 |
} |
23 |
|
24 |
/**
|
25 |
* This method initializes this
|
26 |
*
|
27 |
* @return void
|
28 |
*/
|
29 |
private void initialize() { |
30 |
FlowLayout flowLayout = new FlowLayout(); |
31 |
flowLayout.setHgap(2);
|
32 |
flowLayout.setVgap(2);
|
33 |
this.setLayout(flowLayout);
|
34 |
this.setSize(98, 73); |
35 |
this.setPreferredSize(new java.awt.Dimension(98,73)); |
36 |
this.add(getPMethodSelector(), null); |
37 |
} |
38 |
|
39 |
/**
|
40 |
* This method initializes jPanel
|
41 |
*
|
42 |
* @return javax.swing.JPanel
|
43 |
*/
|
44 |
private JPanel getPMethodSelector() { |
45 |
if (pMethodSelector == null) { |
46 |
GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); |
47 |
gridBagConstraints2.gridx = 0;
|
48 |
gridBagConstraints2.anchor = java.awt.GridBagConstraints.WEST; |
49 |
gridBagConstraints2.gridy = 2;
|
50 |
GridBagConstraints gridBagConstraints1 = new GridBagConstraints(); |
51 |
gridBagConstraints1.gridx = 0;
|
52 |
gridBagConstraints1.anchor = java.awt.GridBagConstraints.WEST; |
53 |
gridBagConstraints1.gridy = 0;
|
54 |
GridBagConstraints gridBagConstraints = new GridBagConstraints(); |
55 |
gridBagConstraints.gridx = 0;
|
56 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; |
57 |
gridBagConstraints.gridy = 1;
|
58 |
pMethodSelector = new JPanel(); |
59 |
pMethodSelector.setLayout(new GridBagLayout()); |
60 |
pMethodSelector.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1));
|
61 |
pMethodSelector.setPreferredSize(new java.awt.Dimension(105,71)); |
62 |
pMethodSelector.add(getRbScale(), gridBagConstraints1); |
63 |
pMethodSelector.add(getRbMtsPixel(), gridBagConstraints); |
64 |
pMethodSelector.add(getRbSize(), gridBagConstraints2); |
65 |
} |
66 |
return pMethodSelector;
|
67 |
} |
68 |
|
69 |
/**
|
70 |
* This method initializes jRadioButton
|
71 |
*
|
72 |
* @return javax.swing.JRadioButton
|
73 |
*/
|
74 |
private JRadioButton getRbScale() { |
75 |
if (rbScale == null) { |
76 |
rbScale = new JRadioButton(); |
77 |
rbScale.setText("Escala");
|
78 |
rbScale.setSelected(true);
|
79 |
} |
80 |
return rbScale;
|
81 |
} |
82 |
|
83 |
/**
|
84 |
* This method initializes jRadioButton1
|
85 |
*
|
86 |
* @return javax.swing.JRadioButton
|
87 |
*/
|
88 |
private JRadioButton getRbMtsPixel() { |
89 |
if (rbMtsPixel == null) { |
90 |
rbMtsPixel = new JRadioButton(); |
91 |
rbMtsPixel.setText("Mts/Pixel");
|
92 |
} |
93 |
return rbMtsPixel;
|
94 |
} |
95 |
|
96 |
/**
|
97 |
* This method initializes jRadioButton2
|
98 |
*
|
99 |
* @return javax.swing.JRadioButton
|
100 |
*/
|
101 |
private JRadioButton getRbSize() { |
102 |
if (rbSize == null) { |
103 |
rbSize = new JRadioButton(); |
104 |
rbSize.setText("Tama?o");
|
105 |
} |
106 |
return rbSize;
|
107 |
} |
108 |
|
109 |
} |