/sigmah/src/test/java/org/sigmah/client/page/entry/editor/mock/MockMapView.java
http://sigma-h.googlecode.com/ · Java · 72 lines · 49 code · 16 blank · 7 comment · 0 complexity · 66b02152cb5e89a6c5decd26cae9dcdc MD5 · raw file
- /*
- * All Sigmah code is released under the GNU General Public License v3
- * See COPYRIGHT.txt and LICENSE.txt.
- */
-
- package org.sigmah.client.page.entry.editor.mock;
-
- import org.sigmah.client.page.entry.editor.MapPresenter;
- import org.sigmah.shared.dto.BoundingBoxDTO;
-
- /**
- * @author Alex Bertram (akbertram@gmail.com)
- */
- public class MockMapView implements MapPresenter.View {
-
- public String boundsName;
- public BoundingBoxDTO bounds;
- public Double lat;
- public Double lng;
- public BoundingBoxDTO mapView;
-
- public Double markerX;
- public Double markerY;
-
- @Override
- public void init(MapPresenter presenter) {
-
- }
-
- @Override
- public void setBounds(String name, BoundingBoxDTO bounds) {
- this.boundsName = name;
- this.bounds = bounds;
- }
-
- @Override
- public void setCoords(Double lat, Double lng) {
- this.lat = lat;
- this.lng = lng;
- }
-
- @Override
- public Double getX() {
- return lng;
- }
-
- @Override
- public Double getY() {
- return lat;
- }
-
- @Override
- public void setMarkerPos(double lat, double lng) {
- markerY = lat;
- markerX = lng;
- }
-
- @Override
- public void setMapView(BoundingBoxDTO bounds) {
- this.mapView = bounds;
- }
-
- @Override
- public BoundingBoxDTO getMapView() {
- return mapView;
- }
-
- @Override
- public void panTo(double lat, double lng) {
-
- }
- }