Revision 6181 trunk/extensions/extGeoprocessingExtensions/src/com/iver/cit/gvsig/geoprocess/impl/reproject/gui/GeoprocessingReprojectPanel.java
GeoprocessingReprojectPanel.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.2 2006-07-04 16:43:18 azabala |
|
48 |
* Revision 1.3 2006-07-05 06:47:26 jaume |
|
49 |
* refactor package name for java naming convention |
|
50 |
* |
|
51 |
* Revision 1.2 2006/07/04 16:43:18 azabala |
|
49 | 52 |
* *** empty log message *** |
50 | 53 |
* |
51 | 54 |
* Revision 1.1 2006/07/03 20:28:56 azabala |
... | ... | |
70 | 73 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
71 | 74 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
72 | 75 |
import com.iver.cit.gvsig.geoprocess.impl.AbstractGeoprocessGridbagPanel; |
73 |
import com.iver.cit.gvsig.gui.Dialogs.CSSelectionDialog;
|
|
76 |
import com.iver.cit.gvsig.gui.dialogs.CSSelectionDialog;
|
|
74 | 77 |
|
75 | 78 |
public class GeoprocessingReprojectPanel extends AbstractGeoprocessGridbagPanel { |
76 | 79 |
/** |
... | ... | |
81 | 84 |
* projection of the target layer |
82 | 85 |
*/ |
83 | 86 |
private IProjection targetLayerProjection; |
84 |
|
|
87 |
|
|
85 | 88 |
/** |
86 | 89 |
* label to show input projection name |
87 | 90 |
*/ |
88 | 91 |
private JLabel inputProjectionLabel; |
89 |
|
|
92 |
|
|
90 | 93 |
/** |
91 | 94 |
* label to show target projection name |
92 | 95 |
*/ |
93 | 96 |
private JLabel targetProjectionLabel; |
94 |
|
|
97 |
|
|
95 | 98 |
/** |
96 | 99 |
* Constructor. |
97 |
*
|
|
100 |
* |
|
98 | 101 |
*/ |
99 | 102 |
public GeoprocessingReprojectPanel(FLayers layers) { |
100 |
super(layers,
|
|
101 |
PluginServices.getText(null,
|
|
103 |
super(layers, |
|
104 |
PluginServices.getText(null, |
|
102 | 105 |
"Reproyeccion._Introduccion_de_datos")); |
103 | 106 |
} |
104 | 107 |
|
... | ... | |
109 | 112 |
targetProjectionLabel = new JLabel(targetLayerProjection.getAbrev()); |
110 | 113 |
addComponent(PluginServices.getText(this, "Proyeccion_Actual"), |
111 | 114 |
inputProjectionLabel, GridBagConstraints.NONE); |
112 |
|
|
115 |
|
|
113 | 116 |
addComponent(new JLabel(PluginServices.getText(this, "Proyeccion_Destino")), |
114 | 117 |
targetProjectionLabel, |
115 | 118 |
getOpenProjectionDialogButton(), |
116 | 119 |
GridBagConstraints.NONE); |
117 | 120 |
} |
118 |
|
|
119 |
|
|
121 |
|
|
122 |
|
|
120 | 123 |
private JButton getOpenProjectionDialogButton(){ |
121 | 124 |
JButton solution = new JButton("..."); |
122 | 125 |
solution.addActionListener(new ActionListener(){ |
... | ... | |
125 | 128 |
csSelect.setProjection(targetLayerProjection); |
126 | 129 |
PluginServices.getMDIManager().addView(csSelect); |
127 | 130 |
if (csSelect.isOkPressed()) { |
128 |
targetLayerProjection =
|
|
131 |
targetLayerProjection = |
|
129 | 132 |
csSelect.getProjection(); |
130 | 133 |
targetProjectionLabel. |
131 | 134 |
setText(targetLayerProjection.getAbrev()); |
... | ... | |
144 | 147 |
inputLayerProjection = inputLyr.getProjection(); |
145 | 148 |
inputProjectionLabel.setText(inputLayerProjection.getAbrev()); |
146 | 149 |
} |
147 |
|
|
150 |
|
|
148 | 151 |
public IProjection getTargetProjection(){ |
149 | 152 |
return targetLayerProjection; |
150 | 153 |
} |
Also available in: Unified diff