Changeset 30859 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/RasterImageGeoreferencer.java
- Timestamp:
- 2014-12-19T17:12:01+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/RasterImageGeoreferencer.java
r29714 r30859 91 91 } 92 92 93 93 94 94 public boolean isRunning() 95 95 { … … 97 97 } 98 98 99 public void mouseClicked(MouseEvent e) { 99 @Override 100 public void mouseClicked(MouseEvent e) { 100 101 if (System.currentTimeMillis() - mouseClickedTime < initialClickDelay) { 101 System.out.println("mouse click bounce detected");102 Main.info("mouse click bounce detected"); 102 103 return; // mouse click anti-bounce 103 104 } … … 108 109 if (ignoreMouseClick) return; // In case we are currently just allowing zooming to read lambert coordinates 109 110 EastNorth ea = Main.getProjection().latlon2eastNorth(Main.map.mapView.getLatLon(e.getX(), e.getY())); 110 System.out.println("clic:"+countMouseClicked+" ,"+ea+", mode:"+mode);111 Main.info("click:"+countMouseClicked+" ,"+ea+", mode:"+mode); 111 112 if (clickOnTheMap) { 112 113 clickOnTheMap = false; … … 117 118 || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north()) 118 119 { 119 System.out.println("ignore clic outside the image");120 Main.info("ignore click outside the image"); 120 121 return; 121 122 } … … 182 183 tr("Ooops. I failed to catch all coordinates\n"+ 183 184 "correctly. Retry please.")); 184 System.out.println("failed to transform: one coordinate missing:"185 Main.warn("failed to transform: one coordinate missing:" 185 186 +"org1="+org1+", org2="+org2+", dst1="+dst1+", dst2="+dst2); 186 187 return; … … 249 250 dialog.setVisible(true); 250 251 pane.addPropertyChangeListener(new PropertyChangeListener() { 251 public void propertyChange(PropertyChangeEvent evt) { 252 @Override 253 public void propertyChange(PropertyChangeEvent evt) { 252 254 if (JOptionPane.VALUE_PROPERTY.equals(evt.getPropertyName())) { 253 255 ignoreMouseClick = false; … … 352 354 } 353 355 354 public void mouseEntered(MouseEvent arg0) { 355 } 356 357 public void mouseExited(MouseEvent arg0) { 358 } 359 360 public void mousePressed(MouseEvent arg0) { 361 } 362 363 public void mouseReleased(MouseEvent arg0) { 356 @Override 357 public void mouseEntered(MouseEvent arg0) { 358 } 359 360 @Override 361 public void mouseExited(MouseEvent arg0) { 362 } 363 364 @Override 365 public void mousePressed(MouseEvent arg0) { 366 } 367 368 @Override 369 public void mouseReleased(MouseEvent arg0) { 364 370 } 365 371
Note:
See TracChangeset
for help on using the changeset viewer.
