Changeset 30403 in osm for applications/viewer/jmapviewer/src/org
- Timestamp:
- 2014-04-16T12:24:15+02:00 (11 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r30223 r30403 40 40 41 41 public void mouseDragged(MouseEvent e) { 42 debugMouseEvent("DefaultMapController.mouseDragged", e); 42 43 if (!movementEnabled || !isMoving) 43 44 return; … … 55 56 56 57 public void mouseClicked(MouseEvent e) { 58 debugMouseEvent("DefaultMapController.mouseClicked", e); 57 59 if (doubleClickZoomEnabled && e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) { 58 60 map.zoomIn(e.getPoint()); … … 61 63 62 64 public void mousePressed(MouseEvent e) { 65 debugMouseEvent("DefaultMapController.mousePressed", e); 63 66 if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) { 64 67 lastDragPoint = null; … … 66 69 } 67 70 } 68 71 69 72 public void mouseReleased(MouseEvent e) { 73 debugMouseEvent("DefaultMapController.mouseReleased", e); 70 74 if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1) { 71 75 lastDragPoint = null; … … 74 78 } 75 79 80 public void debugMouseEvent(String s, MouseEvent e) { 81 if (JMapViewer.debug) { 82 System.err.println("(#9897) " + s + ": Button "+ e.getButton() + " Modifiers: " +Integer.toBinaryString(e.getModifiersEx())); 83 } 84 } 85 76 86 public void mouseWheelMoved(MouseWheelEvent e) { 77 87 if (wheelZoomEnabled) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r30270 r30403 44 44 45 45 private static final long serialVersionUID = 1L; 46 47 public static boolean debug = false; 46 48 47 49 /**
Note:
See TracChangeset
for help on using the changeset viewer.