Revision 10963 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/histogram/HistogramPanelListener.java

View differences:

HistogramPanelListener.java
22 22
import java.awt.event.ActionListener;
23 23
import java.awt.event.KeyEvent;
24 24
import java.awt.event.KeyListener;
25
import java.util.Vector;
25
import java.util.ArrayList;
26 26

  
27 27
import javax.swing.JButton;
28 28
import javax.swing.JComboBox;
......
75 75

  
76 76
	private void updateStatistic() {
77 77
		// TODO Actualizar tabla de los histogramas.
78
		System.out.println("Botones + o - apretados, actualizar tabla");
79 78
		panel.setStatistic(DatasetStatistics.getBasicStatsFromHistogram(getLastHistogram(), (int)panel.getBoxesValues()[1], (int)panel.getBoxesValues()[0], panel.showBands));
80 79
	}
81 80

  
......
125 124
		//Selecci?n de fuente de datos del histograma
126 125
		JComboBox cbo = panel.getJComboBoxOrigen();
127 126
		if (comboEventEnable && e.getSource() == cbo) {
128
			
129
			System.out.println(cbo.getSelectedIndex() + "");
130 127
//			showHistogram();
131 128
//			panel.setHistogramDataSource(cbo.getSelectedIndex());
132 129
			
......
143 140
		//Selecci?n de histograma acumulado y no acumulado
144 141
		JComboBox cbt = panel.getJComboBoxTipo();
145 142
		if (comboEventEnable && e.getSource() == cbt) {
146
			System.out.println(cbt.getSelectedIndex() + "");
147 143
			panel.setType(cbt.getSelectedIndex());
148 144
		}
149 145
	
......
222 218
//	}
223 219
	
224 220
	public void showHistogram() {
225
		IHistogramable iaux = (IHistogramable) ((Vector) panel.getComboSource().get(panel.getJComboBoxOrigen().getSelectedIndex())).get(0);
221
		IHistogramable iaux = (IHistogramable) ((ArrayList) panel.getComboSource().get(panel.getJComboBoxOrigen().getSelectedIndex())).get(0);
226 222
		HistogramProcess histogramProcess = new HistogramProcess(iaux);
227 223
		incrementableTask = new IncrementableTask(histogramProcess);
228 224
		incrementableTask.showWindow();

Also available in: Unified diff