@Test public void moveCenterTest() { MapViewPosition mapViewPosition = new MapViewPosition(new FixedTileSizeDisplayModel(256)); mapViewPosition.moveCenter( MercatorProjection.getMapSize((byte) 0, new FixedTileSizeDisplayModel(256).getTileSize()) / -360d, 0); MapPosition mapPosition = mapViewPosition.getMapPosition(); Assert.assertEquals(0, mapPosition.latLong.latitude, 0); Assert.assertEquals(1, mapPosition.latLong.longitude, 1.0E-14); Assert.assertEquals(0, mapPosition.zoomLevel); }
@Override public void moveCenter(double moveHorizontal, double moveVertical) { this.moveCenterAndZoom(moveHorizontal, moveVertical, (byte) 0, true); }
MapViewPosition extends Observable implements IMapViewPosition, Persistable { @Override public void moveCenter(double moveHorizontal, double moveVertical) { this.moveCenterAndZoom(moveHorizontal, moveVertical, (byte) 0, true); } }
MapViewPosition extends Observable implements IMapViewPosition, Persistable { @Override public void moveCenter(double moveHorizontal, double moveVertical) { this.moveCenterAndZoom(moveHorizontal, moveVertical, (byte) 0, true); } MapViewPosition(DisplayModel displayModel); }
MapViewPosition extends Observable implements IMapViewPosition, Persistable { @Override public void moveCenter(double moveHorizontal, double moveVertical) { this.moveCenterAndZoom(moveHorizontal, moveVertical, (byte) 0, true); } MapViewPosition(DisplayModel displayModel); @Override void animateTo(final LatLong latLong); @Override boolean animationInProgress(); @Override void destroy(); @Override synchronized LatLong getCenter(); @Override synchronized BoundingBox getMapLimit(); @Override synchronized MapPosition getMapPosition(); @Override synchronized LatLong getPivot(); synchronized Point getPivotXY(byte zoomLevel); @Override synchronized double getScaleFactor(); @Override synchronized byte getZoomLevel(); @Override synchronized byte getZoomLevelMax(); @Override synchronized byte getZoomLevelMin(); @Override synchronized void init(PreferencesFacade preferencesFacade); @Override void moveCenter(double moveHorizontal, double moveVertical); @Override void moveCenter(double moveHorizontal, double moveVertical, boolean animated); @Override void moveCenterAndZoom(double moveHorizontal, double moveVertical, byte zoomLevelDiff); void moveCenterAndZoom(double moveHorizontal, double moveVertical, byte zoomLevelDiff, boolean animated); @Override synchronized void save(PreferencesFacade preferencesFacade); @Override void setCenter(LatLong latLong); @Override void setMapLimit(BoundingBox mapLimit); @Override void setMapPosition(MapPosition mapPosition); @Override void setMapPosition(MapPosition mapPosition, boolean animated); @Override void setPivot(LatLong pivot); void setScaleFactor(double scaleFactor); @Override void setScaleFactorAdjustment(double adjustment); @Override void setZoomLevel(byte zoomLevel); @Override void setZoomLevel(byte zoomLevel, boolean animated); @Override void setZoomLevelMax(byte zoomLevelMax); @Override void setZoomLevelMin(byte zoomLevelMin); @Override void zoom(byte zoomLevelDiff); void zoom(byte zoomLevelDiff, boolean animated); @Override void zoomIn(); @Override void zoomIn(boolean animated); @Override void zoomOut(); @Override void zoomOut(boolean animated); }
MapViewPosition extends Observable implements IMapViewPosition, Persistable { @Override public void moveCenter(double moveHorizontal, double moveVertical) { this.moveCenterAndZoom(moveHorizontal, moveVertical, (byte) 0, true); } MapViewPosition(DisplayModel displayModel); @Override void animateTo(final LatLong latLong); @Override boolean animationInProgress(); @Override void destroy(); @Override synchronized LatLong getCenter(); @Override synchronized BoundingBox getMapLimit(); @Override synchronized MapPosition getMapPosition(); @Override synchronized LatLong getPivot(); synchronized Point getPivotXY(byte zoomLevel); @Override synchronized double getScaleFactor(); @Override synchronized byte getZoomLevel(); @Override synchronized byte getZoomLevelMax(); @Override synchronized byte getZoomLevelMin(); @Override synchronized void init(PreferencesFacade preferencesFacade); @Override void moveCenter(double moveHorizontal, double moveVertical); @Override void moveCenter(double moveHorizontal, double moveVertical, boolean animated); @Override void moveCenterAndZoom(double moveHorizontal, double moveVertical, byte zoomLevelDiff); void moveCenterAndZoom(double moveHorizontal, double moveVertical, byte zoomLevelDiff, boolean animated); @Override synchronized void save(PreferencesFacade preferencesFacade); @Override void setCenter(LatLong latLong); @Override void setMapLimit(BoundingBox mapLimit); @Override void setMapPosition(MapPosition mapPosition); @Override void setMapPosition(MapPosition mapPosition, boolean animated); @Override void setPivot(LatLong pivot); void setScaleFactor(double scaleFactor); @Override void setScaleFactorAdjustment(double adjustment); @Override void setZoomLevel(byte zoomLevel); @Override void setZoomLevel(byte zoomLevel, boolean animated); @Override void setZoomLevelMax(byte zoomLevelMax); @Override void setZoomLevelMin(byte zoomLevelMin); @Override void zoom(byte zoomLevelDiff); void zoom(byte zoomLevelDiff, boolean animated); @Override void zoomIn(); @Override void zoomIn(boolean animated); @Override void zoomOut(); @Override void zoomOut(boolean animated);  }