Revision 1757
branches/CqCMSDvp/libraries/libCq CMS for java.old/src/org/cresques/ui/raster/FilterRasterDialogPanel.java | ||
---|---|---|
84 | 84 |
public void actionPerformed(ActionEvent e){ |
85 | 85 |
|
86 | 86 |
//Evento sobre el checkbox de opacidad |
87 |
|
|
87 | 88 |
if( e.getSource().equals(pTrans.getCbOpacidad())){ |
88 | 89 |
|
89 | 90 |
//Check de opacidad activado -> Activar controles de opacidad |
... | ... | |
98 | 99 |
} |
99 | 100 |
|
100 | 101 |
//Evento sobre el checkbox de transparencia |
102 |
|
|
101 | 103 |
if( e.getSource().equals(pTrans.getCbTransparencia())){ |
102 | 104 |
|
103 | 105 |
//Check de opacidad activado -> Activar controles de opacidad |
... | ... | |
114 | 116 |
} |
115 | 117 |
|
116 | 118 |
//Evento sobre el textfield de opacidad |
119 |
|
|
117 | 120 |
if( e.getSource().equals(pTrans.getTOpacidad())){ |
118 | 121 |
checkOpacity(); |
119 | 122 |
} |
120 | 123 |
|
124 |
//Evento sobre el textfield de valor para el Rojo |
|
121 | 125 |
|
126 |
if( e.getSource().equals(pTrans.getTRojo())){ |
|
127 |
try{ |
|
128 |
getTransparencyValues(pTrans.getTRojo().getText()); |
|
129 |
}catch(IOException exc){ |
|
130 |
pTrans.getTRojo().setText(""); |
|
131 |
} |
|
132 |
} |
|
122 | 133 |
|
123 |
//
|
|
124 |
if( e.getSource().equals(pTrans.getTRojo())){ |
|
125 |
try{
|
|
126 |
getTransparencyValues(pTrans.getTRojo().getText());
|
|
127 |
}catch(IOException exc){
|
|
128 |
pTrans.getTRojo().setText("");
|
|
129 |
}
|
|
134 |
//Evento sobre el textfield de valor para el Verde
|
|
135 |
|
|
136 |
if( e.getSource().equals(pTrans.getTVerde())){
|
|
137 |
try{
|
|
138 |
getTransparencyValues(pTrans.getTVerde().getText());
|
|
139 |
}catch(IOException exc){
|
|
140 |
pTrans.getTVerde().setText("");
|
|
130 | 141 |
} |
142 |
} |
|
131 | 143 |
|
132 |
if( e.getSource().equals(pTrans.getTVerde())){ |
|
133 |
try{ |
|
134 |
getTransparencyValues(pTrans.getTVerde().getText()); |
|
135 |
}catch(IOException exc){ |
|
136 |
pTrans.getTVerde().setText(""); |
|
137 |
} |
|
144 |
//Evento sobre el textfield de valor para el Azul |
|
145 |
|
|
146 |
if( e.getSource().equals(pTrans.getTAzul())){ |
|
147 |
try{ |
|
148 |
getTransparencyValues(pTrans.getTAzul().getText()); |
|
149 |
}catch(IOException exc){ |
|
150 |
pTrans.getTAzul().setText(""); |
|
138 | 151 |
} |
139 |
|
|
140 |
if( e.getSource().equals(pTrans.getTAzul())){ |
|
141 |
try{ |
|
142 |
getTransparencyValues(pTrans.getTAzul().getText()); |
|
143 |
}catch(IOException exc){ |
|
144 |
pTrans.getTAzul().setText(""); |
|
145 |
} |
|
146 |
} |
|
152 |
} |
|
147 | 153 |
|
148 | 154 |
|
149 | 155 |
} |
Also available in: Unified diff