Revision 4377 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Panels/PropertiesRasterDialog.java
PropertiesRasterDialog.java | ||
---|---|---|
258 | 258 |
* Constructor de la ventana de dialogo. |
259 | 259 |
* @param app |
260 | 260 |
*/ |
261 |
public PropertiesRasterDialog(FLyrRaster layer, int[][] rangeR, int[][] rangeG, int[][] rangeB){
|
|
261 |
public PropertiesRasterDialog(FLyrRaster layer, ArrayList ranges){
|
|
262 | 262 |
super(); |
263 | 263 |
fLayer = layer; |
264 | 264 |
if(fLayer.getStatus()==null){ |
... | ... | |
267 | 267 |
}else |
268 | 268 |
rasterStatus = (StatusLayerRaster)fLayer.getStatus(); |
269 | 269 |
initialize(); |
270 |
this.setRanges(rangeR, rangeG, rangeB);
|
|
270 |
this.setRanges(ranges);
|
|
271 | 271 |
setTranslation(); |
272 | 272 |
} |
273 | 273 |
|
... | ... | |
281 | 281 |
|
282 | 282 |
RasterTransparencyPanel tpan = this.getTransparencyPanel(); |
283 | 283 |
|
284 |
tpan.lGreenValue.setText(PluginServices.getText(this,"Valor_verde")+":"); |
|
285 |
tpan.lRedValue.setText(PluginServices.getText(this,"Valor_rojo")+":"); |
|
286 |
tpan.lBlueValue.setText(PluginServices.getText(this,"Valor_azul")+":"); |
|
284 |
|
|
287 | 285 |
tpan.getTransparencyCheck().setText(PluginServices.getText(this,"transparencia")); |
288 | 286 |
tpan.getOpacityCheck().setText(PluginServices.getText(this,"opacidad")); |
289 |
tpan.lRange.setText(PluginServices.getText(this,"usar_rango")+": 1,3,5:8"); |
|
290 |
tpan.lPixelValue.setText(PluginServices.getText(this,"valor_pixel")+": 0 a 255"); |
|
291 |
|
|
287 |
|
|
292 | 288 |
EnhancedPanel ep = this.getEnhancedPanel(); |
293 | 289 |
ep.lLineal.setText(PluginServices.getText(this,"lineal_directo")); |
294 | 290 |
ep.lQueue.setText(PluginServices.getText(this,"recorte_colas")); |
... | ... | |
331 | 327 |
initialize(); |
332 | 328 |
} |
333 | 329 |
|
334 |
|
|
335 |
|
|
336 | 330 |
/** |
337 | 331 |
* Carga los datos del panel info. |
338 | 332 |
*/ |
... | ... | |
385 | 379 |
*/ |
386 | 380 |
public void addNumBands(int numBands){ |
387 | 381 |
nbands += numBands; |
388 |
if(this.getTransparencyPanel() != null && this.getTransparencyPanel().getTRojo().isEnabled()) |
|
389 |
this.getTransparencyPanel().setActiveTransparencyControl(true); |
|
382 |
/*if(this.getTransparencyPanel() != null && this.getTransparencyPanel().getTRojo().isEnabled())
|
|
383 |
this.getTransparencyPanel().setActiveTransparencyControl(true); */
|
|
390 | 384 |
} |
391 | 385 |
|
392 | 386 |
/** |
... | ... | |
488 | 482 |
this.currentProjection = prj; |
489 | 483 |
} |
490 | 484 |
|
491 |
|
|
492 |
|
|
493 | 485 |
public void closeJDialog() { |
494 | 486 |
PluginServices.getMDIManager().closeView(PropertiesRasterDialog.this); |
495 | 487 |
} |
... | ... | |
585 | 577 |
} |
586 | 578 |
|
587 | 579 |
//TRANSPARENCIA |
588 |
if( this.getTransparencyPanel().getTransparencyCheck().isSelected()){ |
|
589 |
this.checkTransparencyValues(); |
|
590 |
stackManager.addTransparencyFilter( this.getRangeRed(), |
|
591 |
this.getRangeGreen(), |
|
592 |
this.getRangeBlue(), |
|
580 |
if( this.getTransparencyPanel().getTransparencyCheck().isSelected()){ |
|
581 |
stackManager.addTransparencyFilter( getTransparencyPanel().getPTranspByPixel().getEntries(), |
|
593 | 582 |
0x10, //Transparencia |
594 | 583 |
0xff, //Color Transparencia R |
595 | 584 |
0xff, //Color Transparencia G |
... | ... | |
854 | 843 |
this.status.restoreStatus(this); |
855 | 844 |
fLayer.getFMap().invalidate(); |
856 | 845 |
} |
857 |
|
|
858 | 846 |
|
859 | 847 |
/** |
860 | 848 |
* @see com.iver.mdiApp.ui.MDIManager.View#getViewInfo() |
... | ... | |
864 | 852 |
m_viewinfo.setTitle(PluginServices.getText(this, "propiedades_raster")); |
865 | 853 |
return m_viewinfo; |
866 | 854 |
} |
867 |
|
|
868 |
|
|
869 | 855 |
} |
Also available in: Unified diff