Changeset 3104 in josm for trunk/src/org/openstreetmap/josm/gui/bbox
- Timestamp:
- 2010-03-10T15:52:48+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r3094 r3104 194 194 w = iScreenSize.width * 90 / 100; 195 195 h = iScreenSize.height * 90 / 100; 196 //iDownloadDialogDimension = iGui.getSize();197 196 } 198 197 // shrink … … 203 202 iDownloadDialogDimension = null; 204 203 } 205 // resize and center the DownloadDialog206 //iGui.setBounds((iScreenSize.width - w) / 2, (iScreenSize.height - h) / 2, w, h);207 204 208 205 repaint(); … … 228 225 } 229 226 227 /** 228 * Sets the current bounding box in this bbox chooser without 229 * emiting a property change event. 230 * 231 * @param bbox the bounding box. null to reset the bounding box 232 */ 230 233 @Override 231 234 public void setBoundingBox(Bounds bbox) { 232 235 if (bbox == null) { 233 Bounds oldValue = this.bbox;234 236 this.bbox = null; 235 firePropertyChange(BBOX_PROP, oldValue, this.bbox);236 237 return; 237 238 } 238 239 // test if a bounding box has been set 239 240 if (bbox.getMin().lat() == 0.0 && bbox.getMin().lon() == 0.0 && bbox.getMax().lat() == 0.0 && bbox.getMax().lon() == 0.0) { 240 Bounds oldValue = this.bbox;241 241 this.bbox = null; 242 firePropertyChange(BBOX_PROP, oldValue, this.bbox);243 242 } 244 243 … … 261 260 setDisplayToFitMapMarkers(); 262 261 zoomOut(); 263 264 Bounds oldValue = this.bbox;265 262 this.bbox = bbox; 266 firePropertyChange(BBOX_PROP, oldValue, this.bbox);267 263 } 268 264 }
Note:
See TracChangeset
for help on using the changeset viewer.