Package org.locationtech.udig.project.internal.commands

Examples of org.locationtech.udig.project.internal.commands.SetScaleCommand


            WMTPlugin.log("[WMTZoomLevelSwitcher.zoomToZoomLevel] Zooming failed: " + zoomLevel, e); //$NON-NLS-1$
        }
    }
   
    private void zoomToScale(double scale) {
        ApplicationGIS.getActiveMap().sendCommandASync(new SetScaleCommand(scale));
    }
View Full Code Here


    private void go() {
        String newScale=combo.getText().trim();
        try{
          double d = nf.parse(newScale.replace(" ","")).doubleValue();
            SetScaleCommand command=new SetScaleCommand(d);
            this.mapPart.getMap().sendCommandASync(command);
        }catch(Exception e){
            org.eclipse.swt.graphics.Rectangle start=ZoomingDialog.calculateBounds(combo);
           
            ZoomingDialog.openErrorMessage(start, this.mapPart
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.internal.commands.SetScaleCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.