Package org.osm2world.viewer.control.actions

Examples of org.osm2world.viewer.control.actions.OpenOSMAction


   
    new FileDrop(glCanvas, new FileDrop.Listener() {
      @Override
      public void filesDropped(File[] files) {
        if (files.length >= 1) {
          new OpenOSMAction(ViewerFrame.this, data, renderOptions)
            .openOSMFile(files[0], true);
        }
      }
    });
   
    DefaultNavigation navigation = new DefaultNavigation(this, renderOptions);
    glCanvas.addMouseListener(navigation);
    glCanvas.addMouseMotionListener(navigation);
    glCanvas.addMouseWheelListener(navigation);
    glCanvas.addKeyListener(navigation);
   
    setDefaultCloseOperation(EXIT_ON_CLOSE);
   
    pack();
   
    if (inputFile != null) {
      new OpenOSMAction(this, data, renderOptions).openOSMFile(inputFile, true);
    }
   
  }
View Full Code Here


     
      new RecentFilesUpdater(recentFilesMenu, actionForFileFunction);
     
      JMenu subMenu = new JMenu("File");
      subMenu.setMnemonic(VK_F);
      subMenu.add(new OpenOSMAction(this, data, renderOptions));
      subMenu.add(new ReloadOSMAction(this, data, renderOptions, configFile));
      subMenu.add(recentFilesMenu);
      subMenu.add(new ExportObjAction(this, data, messageManager, renderOptions));
      subMenu.add(new ExportObjDirAction(this, data, messageManager, renderOptions));
      subMenu.add(new ExportPOVRayAction(this, data, messageManager, renderOptions));
View Full Code Here

TOP

Related Classes of org.osm2world.viewer.control.actions.OpenOSMAction

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.