- Timestamp:
- 2018-06-23T00:03:08+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractTileSourceLayer.java
r13897 r13967 314 314 } 315 315 316 /**317 * {@inheritDoc}318 * @deprecated Use {@link TileSourceDisplaySettings#getDx()}319 */320 @Override321 @Deprecated322 public double getDx() {323 return getDisplaySettings().getDx();324 }325 326 /**327 * {@inheritDoc}328 * @deprecated Use {@link TileSourceDisplaySettings#getDy()}329 */330 @Override331 @Deprecated332 public double getDy() {333 return getDisplaySettings().getDy();334 }335 336 /**337 * {@inheritDoc}338 * @deprecated Use {@link TileSourceDisplaySettings}339 */340 @Override341 @Deprecated342 public void setOffset(OffsetBookmark offset) {343 getDisplaySettings().setOffsetBookmark(offset);344 }345 346 316 @Override 347 317 public Object getInfoComponent() { -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r13733 r13967 32 32 import org.openstreetmap.josm.data.ProjectionBounds; 33 33 import org.openstreetmap.josm.data.imagery.ImageryInfo; 34 import org.openstreetmap.josm.data.imagery.OffsetBookmark;35 34 import org.openstreetmap.josm.data.preferences.IntegerProperty; 36 35 import org.openstreetmap.josm.gui.MainApplication; … … 38 37 import org.openstreetmap.josm.gui.MenuScroller; 39 38 import org.openstreetmap.josm.gui.layer.imagery.ImageryFilterSettings; 40 import org.openstreetmap.josm.gui.layer.imagery.TileSourceDisplaySettings;41 39 import org.openstreetmap.josm.gui.widgets.UrlLabel; 42 40 import org.openstreetmap.josm.tools.GBC; … … 91 89 ProjectionBounds bounds = mapView.getProjectionBounds(); 92 90 return mapView.getWidth() / (bounds.maxEast - bounds.minEast); 93 }94 95 /**96 * Gets the x displacement of this layer.97 * To be removed end of 201698 * @return The x displacement.99 * @deprecated Use {@link TileSourceDisplaySettings#getDx()}100 */101 @Deprecated102 public double getDx() {103 // moved to AbstractTileSourceLayer/TileSourceDisplaySettings. Remains until all actions migrate.104 return 0;105 }106 107 /**108 * Gets the y displacement of this layer.109 * To be removed end of 2016110 * @return The y displacement.111 * @deprecated Use {@link TileSourceDisplaySettings#getDy()}112 */113 @Deprecated114 public double getDy() {115 // moved to AbstractTileSourceLayer/TileSourceDisplaySettings. Remains until all actions migrate.116 return 0;117 }118 119 /**120 * Sets the displacement offset of this layer. The layer is automatically invalidated.121 * To be removed end of 2016122 * @param offset the offset bookmark123 * @deprecated Use {@link TileSourceDisplaySettings}124 */125 @Deprecated126 public void setOffset(OffsetBookmark offset) {127 // moved to AbstractTileSourceLayer/TileSourceDisplaySettings. Remains until all actions migrate.128 91 } 129 92
Note:
See TracChangeset
for help on using the changeset viewer.