Revision 1282 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java
MapControl.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig.fmap; |
42 | 42 |
|
43 |
import java.awt.Color; |
|
43 | 44 |
import java.awt.Dimension; |
44 | 45 |
import java.awt.Graphics; |
45 | 46 |
import java.awt.Graphics2D; |
... | ... | |
414 | 415 |
public void run() { |
415 | 416 |
try { |
416 | 417 |
synchronized (Drawer.class) { |
417 |
mapContext.draw(image, (Graphics2D) image.getGraphics(), |
|
418 |
cancel); |
|
418 |
Graphics2D g = image.createGraphics(); |
|
419 |
ViewPort viewPort = mapContext.getViewPort(); |
|
420 |
Color theBackColor = viewPort.getBackColor(); |
|
421 |
if (theBackColor == null) |
|
422 |
g.setColor(Color.WHITE); |
|
423 |
else |
|
424 |
g.setColor(theBackColor); |
|
425 |
g.fillRect(0, 0, viewPort.getImageWidth(), viewPort.getImageHeight()); |
|
419 | 426 |
|
427 |
mapContext.draw(image, g, cancel); |
|
428 |
|
|
420 | 429 |
timer.stop(); |
421 | 430 |
isCancelled = true; |
422 | 431 |
repaint(); |
Also available in: Unified diff