Revision 4269 trunk/extensions/extRasterTools/src/com/iver/cit/gvsig/rasterTools/saveRaster/pruebas2/MethodSaveRasterSelectorPanel.java
MethodSaveRasterSelectorPanel.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.rasterTools.saveRaster.pruebas2; |
2 | 2 |
|
3 |
import java.awt.FlowLayout; |
|
4 |
import java.awt.GridBagConstraints; |
|
5 |
import java.awt.GridBagLayout; |
|
6 |
|
|
7 |
import javax.swing.ButtonGroup; |
|
3 | 8 |
import javax.swing.JPanel; |
4 |
import java.awt.GridBagLayout; |
|
5 | 9 |
import javax.swing.JRadioButton; |
6 |
import java.awt.GridBagConstraints; |
|
7 |
import java.awt.FlowLayout; |
|
8 | 10 |
|
9 | 11 |
public class MethodSaveRasterSelectorPanel extends JPanel { |
10 | 12 |
|
11 |
private JPanel pMethodSelector = null; |
|
12 |
private JRadioButton rbScale = null; |
|
13 |
private JRadioButton rbMtsPixel = null; |
|
14 |
private JRadioButton rbSize = null; |
|
13 |
private JPanel pMethodSelector = null; |
|
14 |
private JRadioButton rbScale = null; |
|
15 |
private JRadioButton rbMtsPixel = null; |
|
16 |
private JRadioButton rbSize = null; |
|
17 |
private ButtonGroup group = null; |
|
15 | 18 |
|
16 | 19 |
/** |
17 | 20 |
* This is the default constructor |
... | ... | |
33 | 36 |
this.setLayout(flowLayout); |
34 | 37 |
this.setSize(98, 73); |
35 | 38 |
this.setPreferredSize(new java.awt.Dimension(98,73)); |
39 |
group = new ButtonGroup(); |
|
36 | 40 |
this.add(getPMethodSelector(), null); |
37 | 41 |
} |
38 | 42 |
|
... | ... | |
41 | 45 |
* |
42 | 46 |
* @return javax.swing.JPanel |
43 | 47 |
*/ |
44 |
private JPanel getPMethodSelector() {
|
|
48 |
public JPanel getPMethodSelector() {
|
|
45 | 49 |
if (pMethodSelector == null) { |
46 | 50 |
GridBagConstraints gridBagConstraints2 = new GridBagConstraints(); |
47 | 51 |
gridBagConstraints2.gridx = 0; |
... | ... | |
59 | 63 |
pMethodSelector.setLayout(new GridBagLayout()); |
60 | 64 |
pMethodSelector.setBorder(javax.swing.BorderFactory.createLineBorder(java.awt.Color.gray,1)); |
61 | 65 |
pMethodSelector.setPreferredSize(new java.awt.Dimension(105,71)); |
66 |
group.add(getRbScale()); |
|
67 |
group.add(getRbMtsPixel()); |
|
68 |
group.add(getRbSize()); |
|
62 | 69 |
pMethodSelector.add(getRbScale(), gridBagConstraints1); |
63 | 70 |
pMethodSelector.add(getRbMtsPixel(), gridBagConstraints); |
64 | 71 |
pMethodSelector.add(getRbSize(), gridBagConstraints2); |
... | ... | |
71 | 78 |
* |
72 | 79 |
* @return javax.swing.JRadioButton |
73 | 80 |
*/ |
74 |
private JRadioButton getRbScale() {
|
|
81 |
public JRadioButton getRbScale() {
|
|
75 | 82 |
if (rbScale == null) { |
76 | 83 |
rbScale = new JRadioButton(); |
77 | 84 |
rbScale.setText("Escala"); |
... | ... | |
85 | 92 |
* |
86 | 93 |
* @return javax.swing.JRadioButton |
87 | 94 |
*/ |
88 |
private JRadioButton getRbMtsPixel() {
|
|
95 |
public JRadioButton getRbMtsPixel() {
|
|
89 | 96 |
if (rbMtsPixel == null) { |
90 | 97 |
rbMtsPixel = new JRadioButton(); |
91 | 98 |
rbMtsPixel.setText("Mts/Pixel"); |
... | ... | |
98 | 105 |
* |
99 | 106 |
* @return javax.swing.JRadioButton |
100 | 107 |
*/ |
101 |
private JRadioButton getRbSize() {
|
|
108 |
public JRadioButton getRbSize() {
|
|
102 | 109 |
if (rbSize == null) { |
103 | 110 |
rbSize = new JRadioButton(); |
104 | 111 |
rbSize.setText("Tama?o"); |
Also available in: Unified diff