/* * Copyright (c) 2015 Washington State Department of Transportation * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> * */ package gov.wa.wsdot.mobile.client.activities.trafficmap; import com.google.gwt.maps.client.MapWidget; import com.google.gwt.maps.client.base.LatLngBounds; import com.google.gwt.user.client.ui.IsWidget; import com.googlecode.gwtphonegap.client.geolocation.Position; import gov.wa.wsdot.mobile.shared.CalloutItem; import gov.wa.wsdot.mobile.shared.CameraItem; import gov.wa.wsdot.mobile.shared.HighwayAlertItem; import gov.wa.wsdot.mobile.shared.RestAreaItem; import java.util.List; public interface TrafficMapView extends IsWidget { public void setPresenter(Presenter presenter); public interface Presenter { public void onBackButtonPressed(); public void onCameraButtonPressed(boolean showCameras); public void onMenuButtonPressed(); public void onCameraSelected(int cameraId); public void onAlertSelected(int alertId); public void onRestAreaSelected(int restAreaId); public void onCalloutSelected(String url); public void onLocateButtonPressed(); public void onMapIsIdle(); public void onTrafficAlertsButtonPressed(LatLngBounds bounds); public void onStarButtonPressed(); public void onRefreshMapButtonPressed(); } public void showProgressIndicator(); public void hideProgressIndicator(); public LatLngBounds getViewportBounds(); public MapWidget getMapWidget(); public void hideCameras(); public void showCameras(); public void deleteCameras(); public void hideAlerts(); public void showAlerts(); public void deleteAlerts(); public void showRestAreas(); public void hideRestAreas(); public void deleteRestAreas(); public void deleteCallouts(); public void showCallouts(); public void drawCameras(List<CameraItem> cameras); public void drawAlerts(List<HighwayAlertItem> alerts); public void drawRestAreas(List<RestAreaItem> restAreas); public void drawCallouts(List<CalloutItem> callouts); public void setTitle(String title); public void setMapLocation(double latitude, double longitude, int zoom); public void setMapLocation(); public void addMapMarker(Position position); public void refreshMap(); }