Revision 1822 branches/gvSIG_CAD_Layout_version/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameView.java
FFrameView.java | ||
---|---|---|
323 | 323 |
(int) r.width, (int) r.height)); |
324 | 324 |
|
325 | 325 |
try { |
326 |
ViewPort viewPort = this.getFMap().getViewPort(); |
|
327 |
Color theBackColor = viewPort.getBackColor(); |
|
328 |
if (theBackColor != null) |
|
329 |
{ |
|
330 |
g.setColor(theBackColor); |
|
331 |
g.fillRect((int) r.x, (int) r.y, viewPort.getImageWidth(), viewPort.getImageHeight()); |
|
332 |
} |
|
333 |
|
|
326 |
ViewPort viewPort = this.getFMap().getViewPort(); |
|
327 |
Color theBackColor = viewPort.getBackColor(); |
|
328 |
|
|
329 |
if (theBackColor != null) { |
|
330 |
g.setColor(theBackColor); |
|
331 |
g.fillRect((int) r.x, (int) r.y, |
|
332 |
viewPort.getImageWidth(), |
|
333 |
viewPort.getImageHeight()); |
|
334 |
} |
|
335 |
|
|
334 | 336 |
this.getFMap().draw(imgBase, g); |
335 | 337 |
} catch (com.iver.cit.gvsig.fmap.DriverException e) { |
336 | 338 |
// TODO Auto-generated catch block |
... | ... | |
340 | 342 |
|
341 | 343 |
if (rclip != null) { |
342 | 344 |
g.setClip(rclip.x, rclip.y, rclip.width, |
343 |
rclip.height);
|
|
344 |
}
|
|
345 |
rclip.height); |
|
346 |
} |
|
345 | 347 |
} else { |
346 | 348 |
drawDraft(g); |
347 | 349 |
} |
... | ... | |
477 | 479 |
*/ |
478 | 480 |
public XMLEntity getXMLEntity() { |
479 | 481 |
XMLEntity xml = new XMLEntity(); |
480 |
xml.putProperty("className",this.getClass().getName()); |
|
482 |
xml.putProperty("className", this.getClass().getName());
|
|
481 | 483 |
xml.putProperty("m_name", m_name); |
482 | 484 |
xml.putProperty("x", getBoundBox().x); |
483 | 485 |
xml.putProperty("y", getBoundBox().y); |
... | ... | |
647 | 649 |
* @see com.iver.cit.gvsig.fmap.ViewPortListener#backColorChanged(com.iver.cit.gvsig.fmap.ColorEvent) |
648 | 650 |
*/ |
649 | 651 |
public void backColorChanged(ColorEvent e) { |
650 |
m_fmap.getViewPort().setBackColor(e.getNewColor());
|
|
651 |
System.out.println("pasa por backColorChanged");
|
|
652 |
m_fmap.getViewPort().setBackColor(e.getNewColor());
|
|
653 |
System.out.println("pasa por backColorChanged");
|
|
652 | 654 |
} |
653 | 655 |
} |
Also available in: Unified diff