Changeset 5311 in josm for trunk/src/org


Ignore:
Timestamp:
2012-06-30T23:07:14+02:00 (12 years ago)
Author:
Don-vip
Message:

fix #7828 - added/fixed Javadoc / minor code simplification (patch by Locked)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r5226 r5311  
    384384            final EastNorth finalNewCenter = newCenter;
    385385
    386             new Thread(
    387                     new Runnable() {
    388                         public void run() {
    389                             for (int i=0; i<frames; i++)
    390                             {
    391                                 // fixme - not use zoom history here
    392                                 zoomTo(oldCenter.interpolate(finalNewCenter, (i+1) / frames));
    393                                 try { Thread.sleep(1000 / fps); } catch (InterruptedException ex) { };
    394                             }
    395                         }
     386            new Thread(){
     387                @Override
     388                public void run() {
     389                    for (int i=0; i<frames; i++)
     390                    {
     391                        // fixme - not use zoom history here
     392                        zoomTo(oldCenter.interpolate(finalNewCenter, (i+1) / frames));
     393                        try { Thread.sleep(1000 / fps); } catch (InterruptedException ex) { };
    396394                    }
    397                     ).start();
     395                }
     396            }.start();
    398397        }
    399398    }
  • trunk/src/org/openstreetmap/josm/gui/layer/TMSLayer.java

    r5281 r5311  
    703703
    704704    /**
    705      * Zoom out from map.
     705     * Check if zooming out is allowed
    706706     *
    707      * @return    true, if zoom increasing was successfull, false othervise
     707     * @return    true, if zooming out is allowed (currentZoomLevel > minZoomLevel)
    708708     */
    709709    public boolean zoomDecreaseAllowed() {
     
    711711    }
    712712   
     713    /**
     714     * Zoom out from map.
     715     *
     716     * @return    true, if zoom increasing was successfull, false othervise
     717     */
    713718    public boolean decreaseZoomLevel() {
    714719        //int minZoom = this.getMinZoomLvl();
Note: See TracChangeset for help on using the changeset viewer.