/* * GMUWorldWindCommands.java * * Created on October 13, 2007, 2:45 PM */ package gmu.WorldWindGPS; /** * These are the basic commands usable inside WorldWindAppFrame. * * @author dfleck */ public interface GMUWorldWindCommands { /** Zoom to a specific place on the globe and zoom in. */ public void goToGPS(double lat, double lon, double zoom); /** Return the latitude of your current location. */ public double getCurrentLatitude(); /** Return the longitude of your current location. */ public double getCurrentLongitude(); /** Set the altitude of the current view to the number of meters * specified in the parameter. */ public void setAltitude(double alt); /** Set the text in the Info box. This can include some * basic HTML markup if desired. */ public void setInfoText(String text); /** Add the specified listener. */ public void addPositionListener(GMUPositionListener pl); /** Return the distanct between points (lat1, lon1) and (lat2, lon2) in * kilometers. */ public double getDistance(double lat1, double lon1, double lat2, double lon2); /** Use to register a listener for the button GetDistance. */ public void addDistanceListener(DistanceListener dl); }