Changeset 506 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2008-01-02T23:12:26+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r414 r506 77 77 addComponentListener(new ComponentAdapter(){ 78 78 @Override public void componentResized(ComponentEvent e) { 79 removeComponentListener(this); 80 79 81 new AutoScaleAction("data").actionPerformed(null); 80 removeComponentListener(this); 82 83 new MapMover(MapView.this, Main.contentPane); 84 85 MapSlider zoomSlider = new MapSlider(MapView.this); 86 add(zoomSlider); 87 zoomSlider.setBounds(3, 0, 114, 30); 88 89 MapScaler scaler = new MapScaler(MapView.this, Main.proj); 90 add(scaler); 91 scaler.setLocation(10,30); 81 92 } 82 93 }); 83 84 new MapMover(this, Main.contentPane);85 94 86 95 // listend to selection changes to redraw the map … … 90 99 } 91 100 }); 92 93 MapSlider zoomSlider = new MapSlider(this);94 add(zoomSlider);95 zoomSlider.setBounds(3, 0, 114, 30);96 97 MapScaler scaler = new MapScaler(this, Main.proj);98 add(scaler);99 scaler.setLocation(10,30);100 101 } 101 102
Note:
See TracChangeset
for help on using the changeset viewer.