Changeset 8723 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-09-03T16:57:32+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java
r8722 r8723 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.tools; 3 4 import org.openstreetmap.josm.gui.layer.ImageProcessor; 3 5 4 6 import java.awt.Dimension; … … 10 12 * @since 8095 11 13 */ 12 public class ImageOverlay {14 public class ImageOverlay implements ImageProcessor { 13 15 /** the image resource to use as overlay */ 14 16 public ImageProvider image; … … 65 67 * @since 8095 66 68 */ 67 public BufferedImage apply(BufferedImage ground) { 69 @Override 70 public BufferedImage process(BufferedImage ground) { 68 71 /* get base dimensions for calculation */ 69 72 int w = ground.getWidth(); -
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r8095 r8723 115 115 if (overlayInfo != null) { 116 116 for (ImageOverlay o : overlayInfo) { 117 o. apply(bimg);117 o.process(bimg); 118 118 } 119 119 } … … 139 139 if (overlayInfo != null) { 140 140 for (ImageOverlay o : overlayInfo) { 141 o. apply(bimg);141 o.process(bimg); 142 142 } 143 143 }
Note:
See TracChangeset
for help on using the changeset viewer.