Revision 2531 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java
MapControl.java | ||
---|---|---|
59 | 59 |
import javax.swing.JComponent; |
60 | 60 |
import javax.swing.Timer; |
61 | 61 |
|
62 |
import org.apache.log4j.Logger; |
|
63 | 62 |
import org.cresques.cts.IProjection; |
64 | 63 |
import org.cresques.cts.ProjectionPool; |
65 | 64 |
|
... | ... | |
83 | 82 |
|
84 | 83 |
/** Cuando la vista est? desactualizada. */ |
85 | 84 |
public static final int DESACTUALIZADO = 1; |
86 |
private static Logger logger = Logger.getLogger(MapControl.class.getName()); |
|
85 |
//private static Logger logger = Logger.getLogger(MapControl.class.getName());
|
|
87 | 86 |
private FMap mapContext = null; |
88 | 87 |
private HashMap namesMapTools = new HashMap(); |
89 | 88 |
private Behavior currentMapTool = null; |
... | ... | |
398 | 397 |
* @author Vicente Caballero Navarro |
399 | 398 |
*/ |
400 | 399 |
public class Drawer extends Thread { |
401 |
private Graphics g; |
|
400 |
//private Graphics g;
|
|
402 | 401 |
private BufferedImage image; |
403 | 402 |
private CancelDraw cancel; |
404 |
private boolean threadCancel = false; |
|
403 |
//private boolean threadCancel = false;
|
|
405 | 404 |
|
406 | 405 |
/** |
407 | 406 |
* Crea un nuevo Drawer. |
... | ... | |
411 | 410 |
* @param cancel |
412 | 411 |
*/ |
413 | 412 |
public Drawer(BufferedImage image, Graphics g, CancelDraw cancel) { |
414 |
this.g = g; |
|
413 |
//this.g = g;
|
|
415 | 414 |
this.image = image; |
416 | 415 |
this.cancel = cancel; |
417 | 416 |
} |
... | ... | |
431 | 430 |
g.setColor(theBackColor); |
432 | 431 |
g.fillRect(0, 0, viewPort.getImageWidth(), viewPort.getImageHeight()); |
433 | 432 |
|
434 |
mapContext.draw(image, g, cancel); |
|
433 |
mapContext.draw(image, g, cancel,mapContext.getScaleView());
|
|
435 | 434 |
|
436 | 435 |
isCancelled = true; |
437 | 436 |
timer.stop(); |
Also available in: Unified diff