Revision 6901 trunk/libraries/libJCRS/src/org/gvsig/crs/ui/CrsView.java
CrsView.java | ||
---|---|---|
34 | 34 |
private JButton next = null; |
35 | 35 |
private JPanel jPanelButton = null; |
36 | 36 |
|
37 |
int crs_target = -1; |
|
38 |
|
|
37 | 39 |
int transformation_code = 0; |
38 | 40 |
private CRSSelectionPanel contentPane = null; |
39 | 41 |
private JPanel buttonPane = null; |
... | ... | |
42 | 44 |
private JCheckBox epsgTrans = null; |
43 | 45 |
private JCheckBox manualTrans = null; |
44 | 46 |
|
45 |
public CrsView() { |
|
47 |
public CrsView(int target) {
|
|
46 | 48 |
super(); |
49 |
crs_target = target; |
|
47 | 50 |
pcpt = new ProjChooserPanelTransformation(); |
48 | 51 |
pcp = new ProjChooserPanel(); |
49 | 52 |
initialize(); |
... | ... | |
208 | 211 |
private void next_actionPerformed(ActionEvent e) { |
209 | 212 |
if(epsgTrans.isSelected() == true && contentPane.getCodeCRS() != -1){ |
210 | 213 |
PluginServices.getMDIManager().closeView(this); |
211 |
TransformationEpsgPanel tr = new TransformationEpsgPanel(contentPane.getWKT(),contentPane.getCodeCRS()); |
|
214 |
TransformationEpsgPanel tr = new TransformationEpsgPanel(contentPane.getWKT(),contentPane.getCodeCRS(), |
|
215 |
crs_target); |
|
212 | 216 |
tr.setSize(new Dimension(550, 400)); |
213 | 217 |
tr.setLayout(new GridLayout(2,2)); |
214 | 218 |
tr.setLayout(new FlowLayout(FlowLayout.LEFT,5,20)); |
Also available in: Unified diff