/[schmitzm]/trunk/src/skrueger/geotools/XMapPane.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/XMapPane.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 515 by alfonx, Mon Nov 9 18:51:54 2009 UTC revision 516 by alfonx, Wed Nov 11 21:17:33 2009 UTC
# Line 1520  public class XMapPane extends JPanel imp Line 1520  public class XMapPane extends JPanel imp
1520          private BufferedImage getBgImage() {          private BufferedImage getBgImage() {
1521    
1522                  if (bgImage == null) {                  if (bgImage == null) {
1523                          LOGGER.debug("creating a new background image");  //                      LOGGER.debug("creating a new background image");
1524    
1525                          Rectangle curPaintArea = getVisibleRect();                          Rectangle curPaintArea = getVisibleRect();
1526                          // allow a single pixel margin at the right and bottom edges                          // allow a single pixel margin at the right and bottom edges
# Line 1566  public class XMapPane extends JPanel imp Line 1566  public class XMapPane extends JPanel imp
1566          private BufferedImage getLocalImage() {          private BufferedImage getLocalImage() {
1567    
1568                  if (localImage == null) {                  if (localImage == null) {
1569                          LOGGER.debug("creating a new local image");  //                      LOGGER.debug("creating a new local image");
1570    
1571                          Rectangle curPaintArea = getVisibleRect();                          Rectangle curPaintArea = getVisibleRect();
1572                          // allow a single pixel margin at the right and bottom edges                          // allow a single pixel margin at the right and bottom edges
# Line 1615  public class XMapPane extends JPanel imp Line 1615  public class XMapPane extends JPanel imp
1615           * @see MapPaneListener#onRenderingStopped(org.geotools.swing.event.MapPaneEvent)           * @see MapPaneListener#onRenderingStopped(org.geotools.swing.event.MapPaneEvent)
1616           */           */
1617          public void onRenderingCompleted() {          public void onRenderingCompleted() {
                 System.out.println("onRenderingCompleted");  
   
1618                  updateFinalImage();                  updateFinalImage();
   
1619                  repaint();                  repaint();
   
1620          }          }
1621    
1622          /**          /**
# Line 2031  public class XMapPane extends JPanel imp Line 2027  public class XMapPane extends JPanel imp
2027          public void dispose() {          public void dispose() {
2028                  if (isDisposed())                  if (isDisposed())
2029                          return;                          return;
2030                    
2031                    setPainting(false);
2032    
2033                  disposed = true;                  disposed = true;
2034    

Legend:
Removed from v.515  
changed lines
  Added in v.516

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26