Package org.earth3d.jearth.draw.markers.gui

Examples of org.earth3d.jearth.draw.markers.gui.MarkerEditForm


    if (pressedbutton == MouseEvent.BUTTON1) {
      Point3D point = getGlmain3d().getSelectedPointOnSurface(e.getX(), e.getY());
     
      // create a new marker and let the user edit it
      Marker marker = new Marker(point, "");
      final MarkerEditForm mef = new MarkerEditForm();
      mef.setMarker(marker);
      mef.setLocationRelativeTo(null); // center to screen
      mef.setVisible(true);

      mef.addActionListener(new ActionListener() {
     
        public void actionPerformed(ActionEvent e) {
          markers.add(mef.getMarker());
        }
     
      });
     
      e.consume();
View Full Code Here

TOP

Related Classes of org.earth3d.jearth.draw.markers.gui.MarkerEditForm

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.