Ignore:
Timestamp:
2015-09-03T16:57:32+02:00 (9 years ago)
Author:
simon04
Message:

see #11713 - use new interface ImageProcessor where applicable

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java

    r8722 r8723  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.tools;
     3
     4import org.openstreetmap.josm.gui.layer.ImageProcessor;
    35
    46import java.awt.Dimension;
     
    1012 * @since 8095
    1113 */
    12 public class ImageOverlay {
     14public class ImageOverlay implements ImageProcessor {
    1315    /** the image resource to use as overlay */
    1416    public ImageProvider image;
     
    6567     * @since 8095
    6668     */
    67     public BufferedImage apply(BufferedImage ground) {
     69    @Override
     70    public BufferedImage process(BufferedImage ground) {
    6871        /* get base dimensions for calculation */
    6972        int w = ground.getWidth();
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r8095 r8723  
    115115            if (overlayInfo != null) {
    116116                for (ImageOverlay o : overlayInfo) {
    117                     o.apply(bimg);
     117                    o.process(bimg);
    118118                }
    119119            }
     
    139139            if (overlayInfo != null) {
    140140                for (ImageOverlay o : overlayInfo) {
    141                     o.apply(bimg);
     141                    o.process(bimg);
    142142                }
    143143            }
Note: See TracChangeset for help on using the changeset viewer.