Changeset 12074 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-05-06T18:18:22+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapViewState.java
r11991 r12074 231 231 232 232 /** 233 * Gets the center of the view, rounded to a pixel coordinate234 * @return The center position.235 * @since 10856236 */237 public MapViewPoint getCenterAtPixel() {238 return getForView(viewWidth / 2, viewHeight / 2);239 }240 241 /**242 233 * Gets the width of the view on the Screen; 243 234 * @return The width of the view component in screen pixel. -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r12072 r12074 297 297 */ 298 298 public void zoomIn() { 299 zoomTo(state.getCenter AtPixel().getEastNorth(), scaleZoomIn());299 zoomTo(state.getCenter().getEastNorth(), scaleZoomIn()); 300 300 } 301 301 … … 304 304 */ 305 305 public void zoomOut() { 306 zoomTo(state.getCenter AtPixel().getEastNorth(), scaleZoomOut());306 zoomTo(state.getCenter().getEastNorth(), scaleZoomOut()); 307 307 } 308 308 … … 401 401 */ 402 402 public EastNorth getCenter() { 403 return state.getCenter AtPixel().getEastNorth();403 return state.getCenter().getEastNorth(); 404 404 } 405 405
Note:
See TracChangeset
for help on using the changeset viewer.