/[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 207 by alfonx, Thu Jul 9 20:14:21 2009 UTC
# Line 344  public class JMapPane extends JPanel imp Line 344  public class JMapPane extends JPanel imp
344                  }                  }
345    
346                  this.renderer = renderer;                  this.renderer = renderer;
347                  this.highlightRenderer = new StreamingRenderer();  //              this.highlightRenderer = new StreamingRenderer();
348                  this.selectionRenderer = new StreamingRenderer();  //              this.selectionRenderer = new StreamingRenderer();
349    
350                  hints.put("memoryPreloadingEnabled", Boolean.FALSE);                  hints.put("memoryPreloadingEnabled", Boolean.FALSE);
351                  highlightRenderer.setRendererHints(hints);  //              highlightRenderer.setRendererHints(hints);
352                  selectionRenderer.setRendererHints(hints);  //              selectionRenderer.setRendererHints(hints);
353    
354                  if (this.context != null) {                  if (this.context != null) {
355                          this.renderer.setContext(this.context);                          this.renderer.setContext(this.context);
# 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.207

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26