Revision 1216
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/Abrir.java | ||
---|---|---|
129 | 129 |
String[] driverNames = fileDlg.getDriverNames(); |
130 | 130 |
Rectangle2D[] rects=new Rectangle2D[files.length]; |
131 | 131 |
boolean first=false; |
132 |
theView.getMapControl().getMapContext() |
|
133 |
.beginAtomicEvent(); |
|
134 |
|
|
132 | 135 |
for (int iFile = 0; iFile < files.length; iFile++) { |
133 | 136 |
File fich = files[iFile]; |
134 | 137 |
String layerName = fich.getName(); |
... | ... | |
140 | 143 |
|
141 | 144 |
if (lyr != null) { |
142 | 145 |
lyr.setVisible(true); |
143 |
theView.getMapControl().getMapContext() |
|
144 |
.beginAtomicEvent(); |
|
145 | 146 |
if (theView.getMapControl().getMapContext().getViewPort().getExtent()==null){ |
146 | 147 |
first=true; |
147 | 148 |
} |
... | ... | |
168 | 169 |
theView.getMapControl().getMapContext().getLayers() |
169 | 170 |
.addLayer(lyr); |
170 | 171 |
rects[iFile]=lyr.getFullExtent(); |
171 |
theView.getMapControl().getMapContext() |
|
172 |
.endAtomicEvent(); |
|
173 | 172 |
|
174 | 173 |
// TODO: Poner una variable y dibujar solo cuando |
175 | 174 |
// todas las capas hayan sido cargadas. |
... | ... | |
178 | 177 |
// theView.getMapControl().drawMap(); |
179 | 178 |
// theView.getTOC().refresh(); |
180 | 179 |
} |
180 |
|
|
181 | 181 |
} catch (DriverException e) { |
182 | 182 |
NotificationManager.addError("Error al crear la capa", e); |
183 | 183 |
} |
... | ... | |
193 | 193 |
theView.getMapControl().getMapContext().getViewPort().setExtent(rect); |
194 | 194 |
} |
195 | 195 |
} |
196 |
theView.getMapControl().getMapContext() |
|
197 |
.endAtomicEvent(); |
|
198 |
|
|
196 | 199 |
} else if (fopen.getSelectedTab() == wms) { |
197 | 200 |
String layerName = wms.getLayerName(); |
198 | 201 |
|
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/DEMO/ComandosListener.java | ||
---|---|---|
261 | 261 |
FLayer lyr = null; |
262 | 262 |
File[] files = fileDlg.getFiles(); |
263 | 263 |
String[] driverNames = fileDlg.getDriverNames(); |
264 |
m_MapControl.getMapContext() |
|
265 |
.beginAtomicEvent(); |
|
266 |
|
|
264 | 267 |
for (int iFile=0; iFile < files.length; iFile++) |
265 | 268 |
{ |
266 | 269 |
File fich = files[iFile]; |
... | ... | |
291 | 294 |
} |
292 | 295 |
|
293 | 296 |
} // for |
297 |
m_MapControl.getMapContext() |
|
298 |
.beginAtomicEvent(); |
|
299 |
|
|
294 | 300 |
return; |
295 | 301 |
|
296 | 302 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java | ||
---|---|---|
282 | 282 |
gTemp.fillRect(0,0,getWidth(), getHeight()); |
283 | 283 |
gTemp.dispose(); |
284 | 284 |
// g.drawImage(image,0,0,null); |
285 |
System.out.println("Imagen con null en DESACTUALIZADO"); |
|
285 | 286 |
} |
286 | 287 |
g.drawImage(image,0,0,null); |
287 | 288 |
|
Also available in: Unified diff