Changeset 11937 in josm
- Timestamp:
- 2017-04-16T21:13:42+02:00 (7 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
r11893 r11937 1213 1213 } 1214 1214 1215 private TileAnchor getAnchor(Tile tile, BufferedImage image) {1215 private static TileAnchor getAnchor(Tile tile, BufferedImage image) { 1216 1216 if (tile instanceof ReprojectionTile) { 1217 1217 return ((ReprojectionTile) tile).getAnchor(); -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/ReprojectionTile.java
r11897 r11937 167 167 168 168 // add margin and align to pixel grid 169 private ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) {169 private static ProjectionBounds pbMarginAndAlign(ProjectionBounds box, double scale, double margin) { 170 170 double minEast = Math.floor(box.minEast / scale - margin) * scale; 171 171 double minNorth = -Math.floor(-(box.minNorth / scale - margin)) * scale; … … 176 176 177 177 // dimension in pixel 178 private Dimension getDimension(ProjectionBounds bounds, double scale) {178 private static Dimension getDimension(ProjectionBounds bounds, double scale) { 179 179 return new Dimension( 180 180 (int) Math.round((bounds.maxEast - bounds.minEast) / scale),
Note:
See TracChangeset
for help on using the changeset viewer.