Revision 15804 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/properties/panels/TransparencyPanel.java
TransparencyPanel.java | ||
---|---|---|
38 | 38 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
39 | 39 |
/** |
40 | 40 |
* Dialogo para asignar la transparencia por pixel y global al raster. |
41 |
*
|
|
41 |
* |
|
42 | 42 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
43 | 43 |
*/ |
44 | 44 |
public class TransparencyPanel extends AbstractPanel implements ActionListener, SliderListener { |
... | ... | |
46 | 46 |
private IRasterProperties op = null; |
47 | 47 |
|
48 | 48 |
/** |
49 |
* N?mero de bandas del raster
|
|
50 |
*/
|
|
49 |
* N?mero de bandas del raster
|
|
50 |
*/
|
|
51 | 51 |
public int nBands = 3; |
52 | 52 |
private JCheckBox cbTransparencia = null; |
53 | 53 |
private TransparencySelectionPanel pTransSelect = null; |
54 | 54 |
private TranspByPixelPanel pTranspByPixel = null; |
55 | 55 |
private CheckSliderTextContainer pOpacity = null; |
56 | 56 |
private TransparencyControl tControl = null; |
57 |
private boolean visible = true; |
|
58 |
|
|
57 |
|
|
59 | 58 |
/** |
60 | 59 |
* Constructor. |
61 | 60 |
*/ |
... | ... | |
77 | 76 |
initControls(); |
78 | 77 |
} |
79 | 78 |
|
80 |
/*
|
|
81 |
* (non-Javadoc)
|
|
82 |
* @see org.gvsig.raster.gui.properties.dialog.IRegistrablePanel#initializeUI()
|
|
83 |
*/
|
|
79 |
/*
|
|
80 |
* (non-Javadoc)
|
|
81 |
* @see org.gvsig.raster.gui.properties.dialog.IRegistrablePanel#initializeUI()
|
|
82 |
*/
|
|
84 | 83 |
public void initializeUI() {} |
85 | 84 |
|
86 | 85 |
/** |
... | ... | |
208 | 207 |
|
209 | 208 |
public void setReference(Object ref) { |
210 | 209 |
super.setReference(ref); |
211 |
|
|
210 |
|
|
212 | 211 |
if (!(ref instanceof FLayer)) |
213 | 212 |
return; |
214 |
|
|
213 |
|
|
215 | 214 |
FLayer lyr = (FLayer) ref; |
216 | 215 |
|
217 | 216 |
if (lyr instanceof IRasterProperties) { |
... | ... | |
220 | 219 |
} |
221 | 220 |
actionEnabled(); |
222 | 221 |
} |
223 |
|
|
222 |
|
|
224 | 223 |
private void actionEnabled() { |
225 | 224 |
if (op == null) { |
226 | 225 |
setVisible(false); |
Also available in: Unified diff