/[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 153 by alfonx, Sat Jun 20 12:48:24 2009 UTC revision 172 by alfonx, Tue Jun 30 20:40:00 2009 UTC
# Line 530  public class JMapPane extends JPanel imp Line 530  public class JMapPane extends JPanel imp
530                                          .getCoordinateReferenceSystem());                                          .getCoordinateReferenceSystem());
531                  }                  }
532    
533                  if (changed) { /* if the map changed then redraw */                  if (changed ) { /* if the map changed then redraw */
534                          changed = false;                          changed = false;
535                          baseImage = new BufferedImage(dr.width, dr.height,                          baseImage = new BufferedImage(dr.width, dr.height,
536                                          BufferedImage.TYPE_INT_ARGB);                                          BufferedImage.TYPE_INT_ARGB);
# Line 543  public class JMapPane extends JPanel imp Line 543  public class JMapPane extends JPanel imp
543                          // draw the map                          // draw the map
544                          renderer.paint((Graphics2D) ig, dr, mapArea);                          renderer.paint((Graphics2D) ig, dr, mapArea);
545    
546                          // TODO , nur machen, wenn panning beginnt                          // TODO nur machen, wenn panning beginnt
547                          panningImage = new BufferedImage(dr.width, dr.height,                          panningImage = new BufferedImage(dr.width, dr.height,
548                                          BufferedImage.TYPE_INT_RGB);                                          BufferedImage.TYPE_INT_RGB);
549    
# Line 733  public class JMapPane extends JPanel imp Line 733  public class JMapPane extends JPanel imp
733          }          }
734    
735          public void mouseClicked(MouseEvent e) {          public void mouseClicked(MouseEvent e) {
736                    if (mapArea == null) return;
737                  // System.out.println("before area "+mapArea+"\nw:"+mapArea.getWidth()+"                  // System.out.println("before area "+mapArea+"\nw:"+mapArea.getWidth()+"
738                  // h:"+mapArea.getHeight());                  // h:"+mapArea.getHeight());
739                  Rectangle bounds = this.getBounds();                  Rectangle bounds = this.getBounds();

Legend:
Removed from v.153  
changed lines
  Added in v.172

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26