Newer
Older
MapPush / src / Map.java
import java.util.*;

public class Map {
	private Longitude longitude;
	private Latitude latitude;
	private MapLatitude mapLatitude;
	private MapLongitude mapLongitude;
	private Presenter presenter;
	public Map() {
		this.longitude = new Longitude();
		this.latitude = new Latitude();
		this.mapLatitude = new MapLatitude();
		this.mapLongitude = new MapLongitude();
		this.presenter = new Presenter(longitude, mapLongitude, latitude, mapLatitude);
	}
	public double getLongitude() {
		return longitude.getValue();
	}
	public double getLatitude() {
		return latitude.getValue();
	}
	public double getMapLatitude() {
		return mapLatitude.getValue();
	}
	public double getMapLongitude() {
		return mapLongitude.getValue();
	}
	public void updateGPS(double lat2, double long2) {
		this.presenter.updateGPS(lat2, long2);
	}
	public void setAutoUpdate(boolean isAutoUpdate) {
		this.presenter.setAutoUpdate(isAutoUpdate);
	}
	public void updateManually() {
		this.presenter.updateManually();
	}
}