Package org.earth3d.jearth.main

Examples of org.earth3d.jearth.main.MainWindow


  /**
   * Listens for new extensions to add a SwitchMapButton to every new MainWindow.
   */
  public void extensionAdded(Extension extension) {
    if (extension instanceof MainWindow) {
      MainWindow mainWindow = (MainWindow) extension;

      SwitchMapButton swb = new SwitchMapButton(mainWindow);
      swb.setConfiguration(getConfiguration());
    }
  }
View Full Code Here


  /**
   * Listens for new extensions to add itself to every new MainWindow.
   */
  public void extensionAdded(Extension extension) {
    if (extension instanceof MainWindow) {
      MainWindow mainWindow = (MainWindow) extension;

      JButton button = new JButton("Next satellite map");
      mainWindow.getContentPane().add(button, BorderLayout.NORTH);
      button.addActionListener(this);
    }
  }
View Full Code Here

  /**
   * Listens for new extensions to add a SwitchMapButton to every new MainWindow.
   */
  public void extensionAdded(Extension extension) {
    if (extension instanceof MainWindow) {
      MainWindow mainWindow = (MainWindow) extension;

      TreeViewServices tvs = new TreeViewServices(mainWindow);
      tvs.setConfiguration(getConfiguration());
    }
  }
View Full Code Here

  public void init() {
    // get the main window
    List<Extension> mainWindowsList= getExtensionManager().getExtensions("MainWindow");
    for(Extension extension : mainWindowsList) {
      if (extension instanceof MainWindow) {
        MainWindow mw = (MainWindow) extension;

        // create new marker drawer
        MarkerDraw md = new MarkerDraw(mw.getMain3DWidget());
       
        // add the marker drawer
        mw.getMain3DWidget().getDrawableManager().add(md);
       
        // add the toolbar button
        JButton toolbarbutton = new JButton("Add Marker");
        toolbarbutton.addActionListener(md);
       
        mw.getToolBar().add(toolbarbutton);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.earth3d.jearth.main.MainWindow

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.