Package chunmap.app.command

Examples of chunmap.app.command.ExtentCommand


public class UiUtil {
  protected static void addCommonButton(Container frame,final MapCtrl map){
    UiUtil.addButton(frame,map,"全图",new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        map.executeCommand(new ExtentCommand(map,map.getLayerCollection().getEnvelop()));
        map.refreshMap();
      }
    });
   
    UiUtil.addButton(frame,map,"<=",new ActionListener() {
View Full Code Here


public class ZoomInBoxTool extends RectangleTool{

  @Override
  public void finished() {
    Envelope newEnv=envelope.transform(map.getView().screen2World());
    ExtentCommand cmd = new ExtentCommand(map, newEnv);
    map.executeCommand(cmd);
    map.refreshMap();
  }
View Full Code Here

TOP

Related Classes of chunmap.app.command.ExtentCommand

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.