Revision 2178 org.gvsig.raster.multifile/trunk/org.gvsig.raster.multifile/org.gvsig.raster.multifile.app.multifileclient/src/main/java/org/gvsig/raster/multifile/app/panel/BandSelectorPanel.java
BandSelectorPanel.java | ||
---|---|---|
440 | 440 |
* @param flag R, G o B se selecciona por medio de un flag que los identifica |
441 | 441 |
* @return Banda de la imagen asignada al flag pasado por par?metro |
442 | 442 |
*/ |
443 |
public int getAssignedBand(int flag) {
|
|
443 |
public int getColorInterpretationByColorBandBand(int flag) {
|
|
444 | 444 |
DefaultTableModel model = ((DefaultTableModel) getARGBTable().getModel()); |
445 | 445 |
if ((flag & RasterDataStore.ALPHA_BAND) == RasterDataStore.ALPHA_BAND) { |
446 | 446 |
for (int nBand = 0; nBand < getARGBTable().getModel().getRowCount(); nBand++) |
... | ... | |
495 | 495 |
return ColorInterpretation.UNDEF_BAND; |
496 | 496 |
} |
497 | 497 |
|
498 |
|
|
498 | 499 |
public void tableChanged(TableModelEvent e) { |
499 | 500 |
getARGBTable().revalidate(); |
500 | 501 |
revalidate(); |
Also available in: Unified diff