Revision 1303
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java | ||
---|---|---|
279 | 279 |
BufferedImage.TYPE_INT_ARGB); |
280 | 280 |
vp.setImageSize(new Dimension(getWidth(), getHeight())); |
281 | 281 |
Graphics gTemp = image.createGraphics(); |
282 |
gTemp.setColor(vp.getBackColor()); |
|
282 |
Color theBackColor = vp.getBackColor(); |
|
283 |
if (theBackColor == null) |
|
284 |
gTemp.setColor(Color.WHITE); |
|
285 |
else |
|
286 |
gTemp.setColor(theBackColor); |
|
287 |
|
|
283 | 288 |
gTemp.fillRect(0,0,getWidth(), getHeight()); |
284 | 289 |
gTemp.dispose(); |
285 | 290 |
// g.drawImage(image,0,0,null); |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/Behavior/MoveBehavior.java | ||
---|---|---|
45 | 45 |
import com.iver.cit.gvsig.fmap.tools.Listeners.PanListener; |
46 | 46 |
import com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener; |
47 | 47 |
|
48 |
import java.awt.Color; |
|
48 | 49 |
import java.awt.Graphics; |
49 | 50 |
import java.awt.Point; |
50 | 51 |
import java.awt.event.MouseEvent; |
... | ... | |
75 | 76 |
* @see com.iver.cit.gvsig.fmap.tools.Behavior.Behavior#paintComponent(java.awt.Graphics) |
76 | 77 |
*/ |
77 | 78 |
public void paintComponent(Graphics g) { |
79 |
Color theBackColor = getMapControl().getMapContext().getViewPort().getBackColor(); |
|
80 |
if (theBackColor == null) |
|
81 |
g.setColor(Color.WHITE); |
|
82 |
else |
|
83 |
g.setColor(theBackColor); |
|
84 |
|
|
78 | 85 |
g.setColor(getMapControl().getMapContext().getViewPort().getBackColor()); |
79 | 86 |
g.fillRect(0, 0, getMapControl().getWidth(), getMapControl().getHeight()); |
80 | 87 |
|
Also available in: Unified diff