Revision 24004 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/vectorizacion/vector/ui/ContourLinesPanel.java
ContourLinesPanel.java | ||
---|---|---|
25 | 25 |
import java.awt.event.ActionListener; |
26 | 26 |
|
27 | 27 |
import javax.swing.BorderFactory; |
28 |
import javax.swing.JRadioButton; |
|
29 | 28 |
|
30 | 29 |
import org.gvsig.gui.beans.datainput.DataInputContainer; |
31 | 30 |
import org.gvsig.raster.util.BasePanel; |
... | ... | |
39 | 38 |
*/ |
40 | 39 |
public class ContourLinesPanel extends BasePanel implements ActionListener { |
41 | 40 |
private static final long serialVersionUID = 1L; |
42 |
private JRadioButton active = null; |
|
43 | 41 |
private DataInputContainer distance = null; |
44 | 42 |
private boolean enabled = true; |
45 | 43 |
|
... | ... | |
63 | 61 |
gbc.weightx = 1; |
64 | 62 |
gbc.insets = new Insets(0, 0, 0, 0); |
65 | 63 |
|
66 |
add(getActive(), gbc); |
|
64 |
//add(getActive(), gbc);
|
|
67 | 65 |
|
68 | 66 |
gbc.gridy = 1; |
69 | 67 |
add(getDistance(), gbc); |
70 | 68 |
|
71 |
getActive().addActionListener(this); |
|
69 |
//getActive().addActionListener(this);
|
|
72 | 70 |
setComponentEnabled(false); |
73 | 71 |
} |
74 | 72 |
|
... | ... | |
81 | 79 |
} |
82 | 80 |
|
83 | 81 |
/** |
84 |
* Obtiene el check de activo |
|
85 |
* @return JCheckBox |
|
86 |
*/ |
|
87 |
public JRadioButton getActive() { |
|
88 |
if(active == null) { |
|
89 |
active = new JRadioButton(); |
|
90 |
} |
|
91 |
return active; |
|
92 |
} |
|
93 |
|
|
94 |
/** |
|
95 | 82 |
* Obtiene la barra deslizadora con el radio del filtro de paso alto |
96 | 83 |
* @return CheckSliderTextContainer |
97 | 84 |
*/ |
... | ... | |
118 | 105 |
*/ |
119 | 106 |
public void setComponentEnabled(boolean enabled) { |
120 | 107 |
getDistance().setControlEnabled(enabled); |
121 |
getActive().setSelected(enabled); |
|
108 |
//getActive().setSelected(enabled);
|
|
122 | 109 |
this.enabled = !enabled; |
123 | 110 |
} |
124 | 111 |
} |
Also available in: Unified diff