Examples of MapFrame


Examples of org.openstreetmap.josm.gui.MapFrame

    }

    private ProgressMonitorDialog getDialog() {

        BackgroundProgressMonitor backgroundMonitor = null;
        MapFrame map = Main.map;
        if (map != null) {
            backgroundMonitor = map.statusLine.progressMonitor;
        }

        if (backgroundMonitor != null) {
View Full Code Here

Examples of org.openstreetmap.josm.gui.MapFrame

            dialog.setCustomText(customText);
            dialog.updateProgress(currentProgressValue);
            dialog.setIndeterminate(indeterminate && currentProgressValue == 0);
        }
        BackgroundProgressMonitor backgroundMonitor = null;
        MapFrame map = Main.map;
        if (map != null) {
            backgroundMonitor = map.statusLine.progressMonitor;
        }
        if (backgroundMonitor != null) {
            backgroundMonitor.setCurrentAction(title);
View Full Code Here

Examples of org.openstreetmap.josm.gui.MapFrame

                    dialog.setInBackgroundCallback(null);
                    dialog.removeWindowListener(windowListener);
                    dialog.dispose();
                    dialog = null;
                    Main.currentProgressMonitor = null;
                    MapFrame map = Main.map;
                    if (map != null) {
                        map.statusLine.progressMonitor.setVisible(false);
                    }
                }
            }
View Full Code Here

Examples of org.openstreetmap.josm.gui.MapFrame

    /**
     * Set or clear (if passed <code>null</code>) the map.
     * @param map The map to set {@link Main#map} to. Can be null.
     */
    public final void setMapFrame(final MapFrame map) {
        MapFrame old = Main.map;
        panel.setVisible(false);
        panel.removeAll();
        if (map != null) {
            map.fillPanel(panel);
        } else {
            old.destroy();
            panel.add(gettingStarted, BorderLayout.CENTER);
        }
        panel.setVisible(true);
        redoUndoListener.commandChanged(0,0);

View Full Code Here

Examples of org.openstreetmap.josm.gui.MapFrame

            Main.map.setVisible(true);
        }
    }

    public synchronized void createMapFrame(Layer firstLayer, ViewportData viewportData) {
        MapFrame mapFrame = new MapFrame(contentPanePrivate, viewportData);
        setMapFrame(mapFrame);
        if (firstLayer != null) {
            mapFrame.selectMapMode((MapMode)mapFrame.getDefaultButtonAction(), firstLayer);
        }
        mapFrame.initializeDialogsPane();
        // bootstrapping problem: make sure the layer list dialog is going to
        // listen to change events of the very first layer
        //
        if (firstLayer != null) {
            firstLayer.addPropertyChangeListener(LayerListDialog.getInstance().getModel());
View Full Code Here

Examples of trackerModule.sim.map.MapFrame

    public void run() {
      World.This().loadWorld_Route();
      World.This().initShortestPath();
      World.This().initNearestFishingAreas();
      World.This().createShipsByGT();
      new MapFrame("PROGNOS Simulator", "/maps/ArabianSea6000x3000.bmp");
    }
View Full Code Here

Examples of trackerModule.sim.map.MapFrame

    try {
      World.This().loadWorld_Route();
      World.This().initShortestPath();
      World.This().initNearestFishingAreas();
       World.This().createShipsByGT();
      new MapFrame("PROGNOS Simulator", "/maps/ArabianSea6000x3000.bmp");
     
      // this will also initialize text mode runner and ubf/owl to be used
      this.setContinuousCase(this.isContinuousCase());
     
      // initialize kb
View Full Code Here

Examples of trackerModule.sim.map.MapFrame

   
    World.This().loadWorld_Route();
    World.This().initShortestPath();
    World.This().initNearestFishingAreas();
    World.This().createShipsByScenario(10, "Bombing", "IllicitCargo");
    new MapFrame("PROGNOS Simulator", "/maps/ArabianSea6000x3000.bmp");
   
  //  World.This().load("World_Route.map");
  ///  World.This().createShipsByScenario(10, "Bombing", "IllicitCargo");
  //  new MapFrame("PROGNOS Simulator");
  }
View Full Code Here

Examples of trackerModule.sim.map.MapFrame

  /**
   * Test_create_ new_ map.
   */
  public void test_create_New_Map(){
    World.This();
     new MapFrame("PROGNOS Simulator", "/maps/ArabianSea6000x3000withAreas.bmp");
  }
View Full Code Here

Examples of trackerModule.sim.map.MapFrame

  /**
   * Test_create_ new_ map_by load.
   */
  public void test_create_New_Map_byLoad(){
    World.This().loadWorld()
     new MapFrame("PROGNOS Simulator", "/maps/ArabianSea6000x3000withAreas.bmp");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.