Newer
Older
MapPush / src / Map.java
public class Map {
	private MapLatitude mapLatitude;
	private Latitude latitude;
	private MapLongitude mapLongitude;
	private Longitude longitude;
	private Presenter presenter;
	public Map() {
		this.mapLatitude = new MapLatitude();
		this.latitude = new Latitude();
		this.mapLongitude = new MapLongitude();
		this.longitude = new Longitude();
		this.presenter = new Presenter(longitude, latitude, mapLongitude, mapLatitude);
	}
	public double getMapLatitude() {
		return mapLatitude.getValue();
	}
	public double getLatitude() {
		return latitude.getValue();
	}
	public double getMapLongitude() {
		return mapLongitude.getValue();
	}
	public double getLongitude() {
		return longitude.getValue();
	}
	public void updateGPS(double lat2, double long2) {
		this.presenter.updateGPS(lat2, long2);
	}
	// setAutoUpdate メソッドの追加
    public void setAutoUpdate(boolean isAutoUpdate) {
        this.presenter.setAutoUpdate(isAutoUpdate);
    }

    // updateManually メソッドの追加
    public void updateManually() {
        this.presenter.updateManually();
    }
}