Changeset 3479 in josm for trunk/src/org/openstreetmap/josm/gui/bbox
- Timestamp:
- 2010-08-29T14:55:25+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/TileSelectionBBoxChooser.java
r3105 r3479 24 24 import java.util.Set; 25 25 import java.util.Vector; 26 import java.util.logging.Logger;27 26 import java.util.regex.Matcher; 28 27 import java.util.regex.Pattern; … … 55 54 * TileSelectionBBoxChooser allows to select a bounding box (i.e. for downloading) based 56 55 * on OSM tile numbers. 57 * 56 * 58 57 * TileSelectionBBoxChooser can be embedded as component in a Swing container. Example: 59 58 * <pre> … … 70 69 * } 71 70 * }); 72 * 71 * 73 72 * // init the chooser with a bounding box 74 73 * chooser.setBoundingBox(....); 75 * 74 * 76 75 * f.setVisible(true); 77 76 * </pre> 78 77 */ 79 78 public class TileSelectionBBoxChooser extends JPanel implements BBoxChooser{ 80 81 static private final Logger logger = Logger.getLogger(TileSelectionBBoxChooser.class.getName());82 79 83 80 /** the current bounding box */ … … 129 126 /** 130 127 * Replies the current bounding box. null, if no valid bounding box is currently selected. 131 * 128 * 132 129 */ 133 130 public Bounds getBoundingBox() { … … 137 134 /** 138 135 * Sets the current bounding box. 139 * 136 * 140 137 * @param bbox the bounding box. null, if this widget isn't initialized with a bounding box 141 138 */ … … 162 159 /** 163 160 * Computes the bounding box given a tile grid. 164 * 161 * 165 162 * @param tb the description of the tile grid 166 163 * @return the bounding box … … 177 174 /** 178 175 * Replies lat/lon of the north/west-corner of a tile at a specific zoom level 179 * 176 * 180 177 * @param tile the tile address (x,y) 181 178 * @param zoom the zoom level … … 205 202 /** 206 203 * A panel for describing a rectangular area of OSM tiles at a given zoom level. 207 * 204 * 208 205 * The panel emits PropertyChangeEvents for the property {@see TileGridInputPanel#TILE_BOUNDS_PROP} 209 206 * when the user successfully enters a valid tile grid specification. … … 572 569 /** 573 570 * Validates the x- or y-coordinate of a tile at a given zoom level. 574 * 571 * 575 572 */ 576 573 static private class TileCoordinateValidator extends AbstractTextComponentValidator { … … 653 650 */ 654 651 static private class TileBoundsMapView extends JMapViewer { 655 private Bounds bbox;656 652 private Point min; 657 653 private Point max; … … 662 658 663 659 public void setBoundingBox(Bounds bbox){ 664 this.bbox = bbox;665 660 if (bbox == null) { 666 661 min = null;
Note:
See TracChangeset
for help on using the changeset viewer.