Changeset 1677 in josm for trunk/src/org/openstreetmap/josm/gui/download
- Timestamp:
- 2009-06-17T10:04:22+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/download
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/download/BoundingBoxSelection.java
r1415 r1677 17 17 import javax.swing.JTextField; 18 18 import javax.swing.SwingUtilities; 19 import javax.swing.event.DocumentListener; 20 import javax.swing.event.DocumentEvent; 19 import javax.swing.event.DocumentListener; 20 import javax.swing.event.DocumentEvent; 21 21 22 22 import org.openstreetmap.josm.data.Bounds; … … 73 73 f.addFocusListener(dialogUpdater); 74 74 } 75 76 class osmUrlRefresher implements DocumentListener { 77 public void changedUpdate(DocumentEvent e) { parseURL(gui); } 78 public void insertUpdate(DocumentEvent e) { parseURL(gui); } 79 public void removeUpdate(DocumentEvent e) { parseURL(gui); } 80 } 81 75 76 class osmUrlRefresher implements DocumentListener { 77 public void changedUpdate(DocumentEvent e) { parseURL(gui); } 78 public void insertUpdate(DocumentEvent e) { parseURL(gui); } 79 public void removeUpdate(DocumentEvent e) { parseURL(gui); } 80 } 81 82 82 KeyListener osmUrlKeyListener = new KeyListener() { 83 83 public void keyPressed(KeyEvent keyEvent) {} … … 88 88 public void keyTyped(KeyEvent keyEvent) {} 89 89 }; 90 90 91 91 osmUrl.addKeyListener(osmUrlKeyListener); 92 osmUrl.getDocument().addDocumentListener(new osmUrlRefresher()); 92 osmUrl.getDocument().addDocumentListener(new osmUrlRefresher()); 93 93 94 94 // select content on receiving focus. this seems to be the default in the … … 138 138 updateUrl(gui); 139 139 } 140 140 141 141 private boolean parseURL(DownloadDialog gui) { 142 142 Bounds b = OsmUrlToBounds.parse(osmUrl.getText()); -
trunk/src/org/openstreetmap/josm/gui/download/OsmMapControl.java
r1602 r1677 26 26 * and centering by double clicking - selecting an area by clicking and dragging 27 27 * the mouse 28 * 28 * 29 29 * @author Tim Haussmann 30 30 */ -
trunk/src/org/openstreetmap/josm/gui/download/SlippyMapChooser.java
r1602 r1677 33 33 /** 34 34 * JComponent that displays the slippy map tiles 35 * 35 * 36 36 * @author Tim Haussmann 37 * 37 * 38 38 */ 39 39 public class SlippyMapChooser extends JMapViewer implements DownloadSelection { … … 70 70 setMapMarkerVisible(false); 71 71 setMinimumSize(new Dimension(350, 350 / 2)); 72 // We need to set an initial size - this prevents a wrong zoom selection for 73 // the area before the component has been displayed the first time 72 // We need to set an initial size - this prevents a wrong zoom selection for 73 // the area before the component has been displayed the first time 74 74 setBounds(new Rectangle(getMinimumSize())); 75 75 setFileCacheEnabled(Main.pref.getBoolean("slippy_map_chooser.file_cache", true)); … … 180 180 * Callback for the OsmMapControl. (Re-)Sets the start and end point of the 181 181 * selection rectangle. 182 * 182 * 183 183 * @param aStart 184 184 * @param aEnd -
trunk/src/org/openstreetmap/josm/gui/download/SourceButton.java
r1390 r1677 43 43 - imageMapnik.getIconWidth(), y, null); 44 44 }else if(currentMap == CYCLEMAP){ 45 45 g.drawImage(imageCycleMap.getImage(), g.getClipBounds().width 46 46 - imageCycleMap.getIconWidth(), y, null); 47 47 }
Note:
See TracChangeset
for help on using the changeset viewer.