Revision 4269 trunk/extensions/extRasterTools/src/com/iver/cit/gvsig/rasterTools/saveRaster/pruebas2/MethodDataInputListener.java
MethodDataInputListener.java | ||
---|---|---|
16 | 16 |
public class MethodDataInputListener implements ActionListener, ChangeListener, MouseListener, FocusListener, |
17 | 17 |
KeyListener { |
18 | 18 |
|
19 |
private MethodDataInputPanel panel = null; |
|
19 |
private MethodSaveRasterSelectorPanel selectorPanel = null; |
|
20 |
private MethodDataInputPanel panel = null; |
|
20 | 21 |
|
21 | 22 |
/** |
22 | 23 |
* This is the default constructor |
23 | 24 |
*/ |
24 | 25 |
public MethodDataInputListener(MethodDataInputPanel panel) { |
25 | 26 |
this.panel = panel; |
26 |
//rgbInputPanel = ((RGBInputPanel)panel.getPRGBInput());
|
|
27 |
/*rgbInputPanel.getTBlue().addFocusListener(this);
|
|
28 |
rgbInputPanel.getTGreen().addFocusListener(this);
|
|
29 |
rgbInputPanel.getTRed().addFocusListener(this);*/
|
|
27 |
selectorPanel = (MethodSaveRasterSelectorPanel)panel.getPWest();
|
|
28 |
selectorPanel.getRbScale().addActionListener(this);
|
|
29 |
selectorPanel.getRbSize().addActionListener(this);
|
|
30 |
selectorPanel.getRbMtsPixel().addActionListener(this);
|
|
30 | 31 |
} |
31 | 32 |
|
32 | 33 |
//******************************* |
33 | 34 |
//ChangeListener |
34 | 35 |
|
35 |
public void focusGained(FocusEvent e) { |
|
36 |
// TODO Auto-generated method stub |
|
37 |
|
|
36 |
public void focusGained(FocusEvent e) { |
|
38 | 37 |
} |
39 | 38 |
|
40 | 39 |
public void focusLost(FocusEvent e) { |
41 |
// TODO Auto-generated method stub |
|
42 | 40 |
} |
43 | 41 |
|
44 | 42 |
public void stateChanged(ChangeEvent e) { |
45 |
// TODO Auto-generated method stub |
|
46 |
|
|
47 | 43 |
} |
48 | 44 |
|
49 | 45 |
//******************************* |
50 | 46 |
//MouseListener |
51 | 47 |
public void mouseClicked(MouseEvent e) { |
52 |
// TODO Auto-generated method stub |
|
53 |
|
|
54 | 48 |
} |
55 | 49 |
|
56 | 50 |
public void mouseEntered(MouseEvent e) { |
57 |
// TODO Auto-generated method stub |
|
58 |
|
|
59 | 51 |
} |
60 | 52 |
|
61 | 53 |
public void mouseExited(MouseEvent e) { |
62 |
// TODO Auto-generated method stub |
|
63 |
|
|
64 | 54 |
} |
65 | 55 |
|
66 |
public void mousePressed(MouseEvent e) { |
|
67 |
// TODO Auto-generated method stub |
|
68 |
|
|
56 |
public void mousePressed(MouseEvent e) { |
|
69 | 57 |
} |
70 | 58 |
|
71 |
public void mouseReleased(MouseEvent e) { |
|
72 |
// TODO Auto-generated method stub |
|
73 |
|
|
59 |
public void mouseReleased(MouseEvent e) { |
|
74 | 60 |
} |
75 | 61 |
|
76 |
public void keyPressed(KeyEvent e) { |
|
77 |
// TODO Auto-generated method stub |
|
78 |
|
|
62 |
public void keyPressed(KeyEvent e) { |
|
79 | 63 |
} |
80 | 64 |
|
81 |
public void keyReleased(KeyEvent e) { |
|
82 |
// TODO Auto-generated method stub |
|
83 |
|
|
65 |
public void keyReleased(KeyEvent e) { |
|
84 | 66 |
} |
85 | 67 |
|
86 |
public void keyTyped(KeyEvent e) { |
|
87 |
// TODO Auto-generated method stub |
|
88 |
|
|
68 |
public void keyTyped(KeyEvent e) { |
|
89 | 69 |
} |
90 | 70 |
|
91 | 71 |
//******************************* |
92 | 72 |
//ActionListener |
93 | 73 |
|
94 | 74 |
public void actionPerformed(ActionEvent e) { |
95 |
// TODO Auto-generated method stub |
|
75 |
if(e.getSource() == selectorPanel.getRbScale()){ |
|
76 |
((InputScaleDataPanel)panel.getPEast()).setActiveScale(0); |
|
77 |
((InputSizeDataPanel)panel.getPSouth()).setActive(false); |
|
78 |
} |
|
96 | 79 |
|
80 |
if(e.getSource() == selectorPanel.getRbMtsPixel()){ |
|
81 |
((InputScaleDataPanel)panel.getPEast()).setActiveScale(1); |
|
82 |
((InputSizeDataPanel)panel.getPSouth()).setActive(false); |
|
83 |
} |
|
84 |
|
|
85 |
if(e.getSource() == selectorPanel.getRbSize()){ |
|
86 |
((InputScaleDataPanel)panel.getPEast()).setActiveScale(2); |
|
87 |
((InputSizeDataPanel)panel.getPSouth()).setActive(true); |
|
88 |
} |
|
97 | 89 |
} |
98 | 90 |
|
99 | 91 |
} |
Also available in: Unified diff