Revision 13949 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/HistogramPanelListener.java
HistogramPanelListener.java | ||
---|---|---|
104 | 104 |
* Constructor. Asigna el panel del histograma |
105 | 105 |
* @param p Panel |
106 | 106 |
*/ |
107 |
public HistogramPanelListener(HistogramPanel p){ |
|
107 |
public HistogramPanelListener(HistogramPanel p) {
|
|
108 | 108 |
histogramPanel = p; |
109 | 109 |
} |
110 | 110 |
|
... | ... | |
125 | 125 |
this.lyr = lyr; |
126 | 126 |
} |
127 | 127 |
|
128 |
public void setControlListeners(){ |
|
128 |
public void setControlListeners() {
|
|
129 | 129 |
getHistogramPanel().getGraphicContainer().addValueChangedListener(this); |
130 | 130 |
} |
131 | 131 |
|
... | ... | |
337 | 337 |
* se elimina y si no entonces se muestra |
338 | 338 |
* @param band banda a visualizar o borrar del gr?fico |
339 | 339 |
*/ |
340 |
public void addOrRemoveGraphicBand(int band){ |
|
340 |
public void addOrRemoveGraphicBand(int band) {
|
|
341 | 341 |
if (band > showBands.length) return; |
342 | 342 |
showBands[band] = !showBands[band]; |
343 | 343 |
} |
... | ... | |
371 | 371 |
} |
372 | 372 |
|
373 | 373 |
int bandCount = 0; |
374 |
for (int i = 0; i < showBands.length; i++) {
|
|
374 |
for (int i = 0; i < showBands.length; i++) |
|
375 | 375 |
if (showBands[i]) bandCount++; |
376 |
} |
|
377 | 376 |
|
378 | 377 |
double[][][] newHistogram = new double[bandCount][end - first + 1][2]; |
379 | 378 |
String[] bandNames = new String[bandCount]; |
Also available in: Unified diff