source: josm/trunk/src/org/openstreetmap/josm/data/imagery/TileLoaderFactory.java@ 13388

Last change on this file since 13388 was 10651, checked in by Don-vip, 8 years ago

fix #13210 - Start extracting coordinate conversion out of tile source (patch by michael2402, modified) - gsoc-core

  • Property svn:eol-style set to native
File size: 748 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.imagery;
3
4import java.util.Map;
5
6import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
7import org.openstreetmap.gui.jmapviewer.interfaces.TileLoaderListener;
8
9/**
10 * Factory creating TileLoaders for layers
11 *
12 * @author Wiktor Niesiobędzki
13 * @since 8526
14 */
15@FunctionalInterface
16public interface TileLoaderFactory {
17
18 /**
19 * @param listener that will be notified, when tile has finished loading
20 * @param headers that will be sent with requests to TileSource. <code>null</code> indicates none
21 * @return TileLoader that uses both of above
22 */
23 TileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers);
24}
Note: See TracBrowser for help on using the repository browser.