Revision 1282 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
63 | 63 |
|
64 | 64 |
import org.apache.log4j.Logger; |
65 | 65 |
|
66 |
import java.awt.Color; |
|
66 | 67 |
import java.awt.Dimension; |
67 | 68 |
import java.awt.Graphics2D; |
68 | 69 |
import java.awt.Rectangle; |
... | ... | |
320 | 321 |
(int) r.width, (int) r.height)); |
321 | 322 |
|
322 | 323 |
try { |
324 |
ViewPort viewPort = this.getFMap().getViewPort(); |
|
325 |
Color theBackColor = viewPort.getBackColor(); |
|
326 |
if (theBackColor != null) |
|
327 |
{ |
|
328 |
g.setColor(theBackColor); |
|
329 |
g.fillRect((int) r.x, (int) r.y, viewPort.getImageWidth(), viewPort.getImageHeight()); |
|
330 |
} |
|
331 |
|
|
323 | 332 |
this.getFMap().draw(imgBase, g); |
324 | 333 |
} catch (com.iver.cit.gvsig.fmap.DriverException e) { |
325 | 334 |
// TODO Auto-generated catch block |
... | ... | |
329 | 338 |
|
330 | 339 |
if (rclip != null) { |
331 | 340 |
g.setClip(rclip.x, rclip.y, rclip.width, |
332 |
rclip.height); |
|
333 |
} |
|
341 |
rclip.height);
|
|
342 |
}
|
|
334 | 343 |
} else { |
335 | 344 |
drawDraft(g); |
336 | 345 |
} |
... | ... | |
637 | 646 |
* @see com.iver.cit.gvsig.fmap.ViewPortListener#backColorChanged(com.iver.cit.gvsig.fmap.ColorEvent) |
638 | 647 |
*/ |
639 | 648 |
public void backColorChanged(ColorEvent e) { |
649 |
m_fmap.getViewPort().setBackColor(e.getNewColor()); |
|
640 | 650 |
} |
641 | 651 |
} |
Also available in: Unified diff