Revision 6929
trunk/libraries/libJCRS/src/org/gvsig/crs/ui/CrsView.java | ||
---|---|---|
64 | 64 |
|
65 | 65 |
private void getJPanel() { |
66 | 66 |
this.add(getCheckButtonPane(), null); |
67 |
this.add(getButtons(), null); |
|
68 |
if (!CRSSelectionPanel.si){ |
|
69 |
withOutTrans.setEnabled(false); |
|
70 |
nadgrids.setEnabled(false); |
|
71 |
epsgTrans.setEnabled(false); |
|
72 |
manualTrans.setEnabled(false); |
|
73 |
next.setVisible(false); |
|
74 |
accept.setVisible(true); |
|
75 |
} |
|
67 |
this.add(getButtons(), null); |
|
76 | 68 |
} |
77 | 69 |
|
78 | 70 |
public CRSSelectionPanel getContentPanel() { |
... | ... | |
253 | 245 |
PluginServices.getMDIManager().addView(tr); |
254 | 246 |
setProjection(tr.getProjection()); |
255 | 247 |
|
256 |
}else if(nadgrids.isSelected() == true && contentPane.getCodeCRS() != -1) {
|
|
248 |
}else if(nadgrids.isSelected() == true && contentPane.getCodeCRS() != -1) {
|
|
257 | 249 |
PluginServices.getMDIManager().closeView(this); |
258 | 250 |
TransformationNadgridsPanel tn = new TransformationNadgridsPanel(contentPane.getWKT(),contentPane.getCodeCRS()); |
259 | 251 |
tn.setSize(new Dimension(550, 275)); |
... | ... | |
261 | 253 |
tn.setLayout(new FlowLayout(FlowLayout.LEFT,5,10)); |
262 | 254 |
// setProjection(tn.getProjection()); |
263 | 255 |
PluginServices.getMDIManager().addView(tn); |
264 |
}else if(manualTrans.isSelected() == true && contentPane.getCodeCRS() != -1) {
|
|
256 |
}else if(manualTrans.isSelected() == true && contentPane.getCodeCRS() != -1) {
|
|
265 | 257 |
PluginServices.getMDIManager().closeView(this); |
266 | 258 |
TransformationManualPanel tm = new TransformationManualPanel(contentPane.getWKT(),contentPane.getCodeCRS()); |
267 | 259 |
tm.setSize(new Dimension(550, 400)); |
... | ... | |
269 | 261 |
tm.setLayout(new FlowLayout(FlowLayout.LEFT,5,10)); |
270 | 262 |
// setProjection(tm.getProjection()); |
271 | 263 |
PluginServices.getMDIManager().addView(tm); |
264 |
}else if(withOutTrans.isSelected() == true && contentPane.getCodeCRS() != -1) { |
|
265 |
PluginServices.getMDIManager().closeView(this); |
|
266 |
WithoutTranformation wt = new WithoutTranformation(contentPane.getWKT(),contentPane.getCodeCRS()); |
|
267 |
wt.setSize(new Dimension(550, 200)); |
|
268 |
wt.setLayout(new GridLayout(2,2)); |
|
269 |
wt.setLayout(new FlowLayout(FlowLayout.LEFT,5,10)); |
|
270 |
PluginServices.getMDIManager().addView(wt); |
|
272 | 271 |
} |
273 | 272 |
} |
274 | 273 |
|
Also available in: Unified diff