Changeset 10179 in josm for trunk/src/org/openstreetmap/josm/gui/layer
- Timestamp:
- 2016-05-11T02:44:10+02:00 (8 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
r10168 r10179 1580 1580 int offset = 200; 1581 1581 for (String part: cachedTileLoader.getStats().split("\n")) { 1582 myDrawString(g, tr("Cache stats: {0}", part), 50, offset += 15);1583 }1584 1582 offset += 15; 1583 myDrawString(g, tr("Cache stats: {0}", part), 50, offset); 1584 } 1585 1585 } 1586 1586 } -
trunk/src/org/openstreetmap/josm/gui/layer/ImageryLayer.java
r10173 r10179 103 103 104 104 public double getPPD() { 105 if (!Main.isDisplayingMapView()) return Main.getProjection().getDefaultZoomInPPD(); 105 if (!Main.isDisplayingMapView()) 106 return Main.getProjection().getDefaultZoomInPPD(); 106 107 ProjectionBounds bounds = Main.map.mapView.getProjectionBounds(); 107 108 return Main.map.mapView.getWidth() / (bounds.maxEast - bounds.minEast); … … 122 123 123 124 public void displace(double dx, double dy) { 124 setOffset(this.dx += dx, this.dy += dy); 125 } 126 125 this.dx += dx; 126 this.dy += dy; 127 setOffset(this.dx, this.dy); 128 } 129 130 /** 131 * Returns imagery info. 132 * @return imagery info 133 */ 127 134 public ImageryInfo getInfo() { 128 135 return info;
Note:
See TracChangeset
for help on using the changeset viewer.