Revision 952
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/IView.java | ||
---|---|---|
33 | 33 |
* @return DOCUMENT ME! |
34 | 34 |
*/ |
35 | 35 |
public abstract TOC getTOC(); |
36 |
|
|
37 |
/** |
|
38 |
* DOCUMENT ME! |
|
39 |
*/ |
|
40 |
public abstract void repaintMap(); |
|
41 | 36 |
} |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/Encuadrator.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
public void indexesSelected(int[] indices) { |
25 | 25 |
mapa.getViewPort().setExtent(project.getExtents()[indices[0]].getExtent()); |
26 |
vista.repaintMap(); |
|
27 | 26 |
} |
28 | 27 |
|
29 | 28 |
/** |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java | ||
---|---|---|
116 | 116 |
|
117 | 117 |
mapContext.addAtomicEventListener(mapContextListener); |
118 | 118 |
|
119 |
status = DESACTUALIZADO; |
|
119 | 120 |
} |
120 | 121 |
public IProjection getProjection() { |
121 | 122 |
return getMapContext().getProjection(); |
... | ... | |
218 | 219 |
*/ |
219 | 220 |
protected void paintComponent(Graphics g) { |
220 | 221 |
if (status == ACTUALIZADO) { |
222 |
logger.debug("Dibujando la imagen obtenida"); |
|
221 | 223 |
if (image != null) { |
222 | 224 |
g.drawImage(image, 0, 0, this); |
223 | 225 |
} else { |
... | ... | |
229 | 231 |
currentMapTool.paintComponent(g); |
230 | 232 |
} |
231 | 233 |
} else if (status == DESACTUALIZADO) { |
232 |
logger.debug("Pintando MapControl");
|
|
234 |
logger.debug("Obteniendo la imagen de la cartograf?a");
|
|
233 | 235 |
image = new BufferedImage(this.getWidth(), this.getHeight(), |
234 | 236 |
BufferedImage.TYPE_INT_ARGB); |
235 | 237 |
image.getGraphics().setColor(backColor); |
... | ... | |
343 | 345 |
timer.stop(); |
344 | 346 |
isCancelled = true; |
345 | 347 |
System.err.println("Cancelado"); |
348 |
image.setRGB(5, 5, Color.BLACK.getRGB()); |
|
346 | 349 |
repaint(); |
347 | 350 |
} |
348 | 351 |
} catch (Throwable e) { |
Also available in: Unified diff