Revision 12154 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/EnhancedBrightnessContrastPanel.java
EnhancedBrightnessContrastPanel.java | ||
---|---|---|
40 | 40 |
final private static long serialVersionUID = 0; |
41 | 41 |
private InternalPanel internalPanel = null; |
42 | 42 |
private JCheckBox active = null; |
43 |
private JCheckBox preview = null; |
|
44 | 43 |
|
45 | 44 |
/** |
46 | 45 |
* Panel con los controles deslizantes de brillo y contraste |
... | ... | |
93 | 92 |
setLayout(new BorderLayout()); |
94 | 93 |
add(getActive(), BorderLayout.NORTH); |
95 | 94 |
add(internalPanel, BorderLayout.CENTER); |
96 |
add(getPreview(), BorderLayout.SOUTH); |
|
97 | 95 |
getActive().addActionListener(this); |
98 | 96 |
} |
99 | 97 |
|
... | ... | |
111 | 109 |
} |
112 | 110 |
|
113 | 111 |
/** |
114 |
* Obtiene el check de previsualizaci?n |
|
115 |
* @return |
|
116 |
*/ |
|
117 |
public JCheckBox getPreview() { |
|
118 |
if (preview == null) { |
|
119 |
preview = new JCheckBox(PluginServices.getText(this, "previsualizacion")); |
|
120 |
preview.setSelected(true); |
|
121 |
} |
|
122 |
return preview; |
|
123 |
} |
|
124 |
|
|
125 |
/** |
|
126 | 112 |
* Activa o desactiva el control |
127 | 113 |
* @param enable true activa y false desactiva los controles del panel |
128 | 114 |
*/ |
129 | 115 |
public void setControlEnabled(boolean enabled){ |
130 | 116 |
this.getActive().setSelected(enabled); |
131 |
this.getPreview().setEnabled(enabled); |
|
132 | 117 |
internalPanel.setControlEnabled(enabled); |
133 | 118 |
} |
134 | 119 |
|
Also available in: Unified diff