Changeset 1169 in josm for trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
- Timestamp:
- 2008-12-23T15:07:05+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomOutAction.java
r1087 r1169 12 12 public final class ZoomOutAction extends JosmAction { 13 13 14 15 16 17 18 14 public ZoomOutAction() { 15 super(tr("Zoom out"), "dialogs/zoomout", tr("Zoom out"), 16 Shortcut.registerShortcut("view:zoomout", tr("View: {0}", tr("Zoom out")), KeyEvent.VK_MINUS, Shortcut.GROUP_DIRECT), true); 17 setEnabled(true); 18 } 19 19 20 20 public void actionPerformed(ActionEvent e) { 21 21 if (Main.map == null) return; 22 23 24 22 double zoom = Main.map.mapView.getScale(); 23 Main.map.mapView.zoomTo(Main.map.mapView.getCenter(), zoom /.9); 24 } 25 25 }
Note:
See TracChangeset
for help on using the changeset viewer.