Ticket #402: MouseMover_20071013.patch

File MouseMover_20071013.patch, 1.1 KB (added by dpenezic@…, 6 years ago)

patch file

  • src/org/openstreetmap/josm/gui/MapMover.java

     
    9292        /** 
    9393         * If the right (and only the right) mouse button is pressed, move the map 
    9494         */ 
    95         public void mouseDragged(MouseEvent e) { 
     95        @Override public void mouseDragged(MouseEvent e) { 
    9696                int offMask = MouseEvent.BUTTON1_DOWN_MASK | MouseEvent.BUTTON2_DOWN_MASK; 
    9797                if ((e.getModifiersEx() & (MouseEvent.BUTTON3_DOWN_MASK | offMask)) == MouseEvent.BUTTON3_DOWN_MASK) { 
    9898                        if (mousePosMove == null) 
     
    157157         * Zoom the map by 1/5th of current zoom per wheel-delta. 
    158158         * @param e The wheel event. 
    159159         */ 
    160         public void mouseWheelMoved(MouseWheelEvent e) { 
     160        @Override public void mouseWheelMoved(MouseWheelEvent e) { 
    161161                int w = nc.getWidth(); 
    162162                int h = nc.getHeight(); 
    163163 
     
    176176        /** 
    177177         * Does nothing. Only to satisfy MouseMotionListener 
    178178         */ 
    179         public void mouseMoved(MouseEvent e) {} 
     179        @Override public void mouseMoved(MouseEvent e) {} 
    180180}