| Line | |
|---|
| 1 | // License: GPL. For details, see LICENSE file.
|
|---|
| 2 | package org.openstreetmap.josm.data.imagery;
|
|---|
| 3 |
|
|---|
| 4 | import java.util.Map;
|
|---|
| 5 |
|
|---|
| 6 | import org.openstreetmap.gui.jmapviewer.interfaces.TileLoader;
|
|---|
| 7 | import 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
|
|---|
| 16 | public interface TileLoaderFactory {
|
|---|
| 17 |
|
|---|
| 18 | /**
|
|---|
| 19 | * Creates TileLoaderFactory - factory that creates tile loaders with all options already set
|
|---|
| 20 | *
|
|---|
| 21 | * @param listener that will be notified, when tile has finished loading
|
|---|
| 22 | * @param headers that will be sent with requests to TileSource. <code>null</code> indicates none
|
|---|
| 23 | * @param minimumExpiryTime minimum expiry time
|
|---|
| 24 | * @return TileLoader that uses both of above
|
|---|
| 25 | */
|
|---|
| 26 | TileLoader makeTileLoader(TileLoaderListener listener, Map<String, String> headers, long minimumExpiryTime);
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.