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

Last change on this file since 8643 was 8624, checked in by bastiK, 9 years ago

add missing svn:eol-style=native

  • Property svn:eol-style set to native
File size: 906 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 */
15public interface TileLoaderFactory {
16
17 /**
18 * @param listener that will be notified, when tile has finished loading
19 * @return TileLoader that notifies specified listener
20 */
21 TileLoader makeTileLoader(TileLoaderListener listener);
22
23 /**
24 * @param listener that will be notified, when tile has finished loading
25 * @param headers that will be sent with requests to TileSource
26 * @return TileLoader that uses both of above
27 */
28 TileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers);
29}
Note: See TracBrowser for help on using the repository browser.