Revision 952 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java

View differences:

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