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

View differences:

HistogramPanelListener.java
39 39
 * @author Nacho Brodin (brodin_ign@gva.es)
40 40
 * @author Borja Sanchez Zamorano (borja.sanchez@iver.es)
41 41
 */
42
public class HistogramPanelListener implements FocusListener, KeyListener, MouseListener, ActionListener, MouseMotionListener{
42
public class HistogramPanelListener implements ActionListener, KeyListener, FocusListener {
43 43

  
44 44
	private HistogramPanel			panel = null;
45 45
	/**
46 46
	 * Objeto histograma para la gesti?n de procesos de histograma
47 47
	 */
48
	private	Histogram				histogramObj = null;
48
	private	Histogram				histogram = null;
49 49
	/**
50 50
	 * ?ltimo histograma visualizado en el gr?fico
51 51
	 */
......
67 67
		panel.getGraphicContainer().getTextControlRight().addFocusListener(this);
68 68
		panel.getGraphicContainer().getTextControlLeft().addFocusListener(this);
69 69
	}
70
	
71
	public void mouseDragged(MouseEvent e) {
72
				
73
	}
74 70

  
75
	public void mousePressed(MouseEvent e) {
76
		
77
	}
78

  
79
	public void mouseReleased(MouseEvent e) {
80
			
81
	}
82
	
83
	public void setLabels(JLabel left, JLabel right){
84
		  
85
	}
86
	
87
	public void mouseMoved(MouseEvent e) {
88
			
89
	}
90

  
91
	private void initialize(){
92

  
93
	}
94
	
95 71
	public void actionPerformed(ActionEvent e) {
96 72
/*		
97 73
		//--------------------------------------
......
164 140
*/
165 141
	}
166 142

  
167
	public void tableChanged(TableModelEvent e) {
168
				
169
	}
170

  
171
	public void mouseClicked(MouseEvent e) {
172
		
173
	}
174

  
175
	public void mouseEntered(MouseEvent e) {
176
				
177
	}
178

  
179
	public void mouseExited(MouseEvent e) {
180
				
181
	}
182

  
183 143
	/**
184 144
	 * Obtiene el ?ltimo histograma visualizado
185 145
	 * @return
......
192 152
	 * Asigna el objeto histograma para la gesti?n de procesos de histograma
193 153
	 * @param histogramObj
194 154
	 */
195
	public void setHistogram(Histogram histogramObj) {
196
		this.histogramObj = histogramObj;
155
	public void setHistogram(Histogram histogram) {
156
		this.histogram = histogram;
197 157
	}
198 158
	
199 159
	/**
......
203 163
	 */
204 164
	public void readFullHistogramFromThread(){
205 165
		if (panel.getType() == 0)
206
			lastHistogram = histogramObj.getFullHistogram();
166
			lastHistogram = getHistogram().getFullHistogram();
207 167
		else if(panel.getType() == 1)
208
			lastHistogram = histogramObj.getFullAccumulatedHistogram();
168
			lastHistogram = getHistogram().getFullAccumulatedHistogram();
209 169
		
210 170
/*		setStatistic(Statistic.getBasicStatsFromHistogram(	lastHistogram, 
211 171
															(int)getBoxesValues()[1], 
......
255 215
	 * @return
256 216
	 */
257 217
	public Histogram getHistogram() {
258
		return histogramObj;
218
		return histogram;
259 219
	}
260 220
	
261 221
	public void keyPressed(KeyEvent e) {
......
269 229
	}
270 230

  
271 231
	public void keyReleased(KeyEvent e) {
232
		// TODO Auto-generated method stub
233
		
272 234
	}
273 235

  
274 236
	public void keyTyped(KeyEvent e) {
237
		// TODO Auto-generated method stub
238
		
275 239
	}
276 240

  
277 241
	public void focusGained(FocusEvent e) {
242
		// TODO Auto-generated method stub
243
		
278 244
	}
279 245

  
280 246
	public void focusLost(FocusEvent e) {
247
		// TODO Auto-generated method stub
248
		
281 249
	}
282 250
}

Also available in: Unified diff