Changeset 3327 in josm for trunk/src/org/openstreetmap/josm/gui/MapView.java
- Timestamp:
- 2010-06-09T22:14:06+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r3252 r3327 34 34 import org.openstreetmap.josm.Main; 35 35 import org.openstreetmap.josm.actions.AutoScaleAction; 36 import org.openstreetmap.josm.actions.MoveAction;37 36 import org.openstreetmap.josm.actions.mapmode.MapMode; 38 37 import org.openstreetmap.josm.data.Bounds; … … 190 189 public MapView(final JPanel contentPane) { 191 190 Main.pref.addPreferenceChangeListener(this); 191 192 // new MoveAction(MoveAction.Direction.UP); 193 // new MoveAction(MoveAction.Direction.DOWN); 194 // new MoveAction(MoveAction.Direction.LEFT); 195 // new MoveAction(MoveAction.Direction.RIGHT); 196 192 197 addComponentListener(new ComponentAdapter(){ 193 198 @Override public void componentResized(ComponentEvent e) { … … 206 211 if (!zoomToDataSetBoundingBox(layer.data)) { 207 212 // no bounding box defined 208 newAutoScaleAction("data").actionPerformed(null);213 AutoScaleAction.autoScale("data"); 209 214 } 210 215 } else { 211 newAutoScaleAction("layer").actionPerformed(null);216 AutoScaleAction.autoScale("layer"); 212 217 } 213 218 214 219 new MapMover(MapView.this, contentPane); 215 new MoveAction(MoveAction.Direction.UP);216 new MoveAction(MoveAction.Direction.DOWN);217 new MoveAction(MoveAction.Direction.LEFT);218 new MoveAction(MoveAction.Direction.RIGHT);219 220 } 220 221 });
Note:
See TracChangeset
for help on using the changeset viewer.