Changeset 30650 in osm


Ignore:
Timestamp:
2014-09-16T03:28:37+02:00 (10 years ago)
Author:
donvip
Message:

[jmapviewer] see #josm9897 - remove debug code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java

    r30628 r30650  
    4040
    4141    public void mouseDragged(MouseEvent e) {
    42         debugMouseEvent("DefaultMapController.mouseDragged", e);
    4342        if (!movementEnabled || !isMoving)
    4443            return;
    4544        // Is only the selected mouse button pressed?
    4645        if ((e.getModifiersEx() & MOUSE_BUTTONS_MASK) == movementMouseButtonMask || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
    47             if (JMapViewer.debug) {
    48                 System.err.println("(#9897)  moving");
    49             }
    5046            Point p = e.getPoint();
    5147            if (lastDragPoint != null) {
     
    5955
    6056    public void mouseClicked(MouseEvent e) {
    61         debugMouseEvent("DefaultMapController.mouseClicked", e);
    6257        if (doubleClickZoomEnabled && e.getClickCount() == 2 && e.getButton() == MouseEvent.BUTTON1) {
    6358            map.zoomIn(e.getPoint());
     
    6661
    6762    public void mousePressed(MouseEvent e) {
    68         debugMouseEvent("DefaultMapController.mousePressed", e);
    69 
    7063        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getModifiersEx() == MAC_MOUSE_BUTTON3_MASK) {
    71             if (JMapViewer.debug) {
    72                 System.err.println("(#9897)  move start");
    73             }
    7464            lastDragPoint = null;
    7565            isMoving = true;
     
    7868
    7969    public void mouseReleased(MouseEvent e) {
    80         debugMouseEvent("DefaultMapController.mouseReleased", e);
    8170        if (e.getButton() == movementMouseButton || isPlatformOsx() && e.getButton() == MouseEvent.BUTTON1) {
    82             if (JMapViewer.debug) {
    83                 System.err.println("(#9897)  move stop");
    84             }
    8571            lastDragPoint = null;
    8672            isMoving = false;
    87         }
    88     }
    89 
    90     public void debugMouseEvent(String s, MouseEvent e) {
    91         if (JMapViewer.debug) {
    92             System.err.println("(#9897) " + s + ": Button "+ e.getButton() + " Modifiers: " +Integer.toBinaryString(e.getModifiersEx()));
    9373        }
    9474    }
Note: See TracChangeset for help on using the changeset viewer.