001    package org.openstreetmap.gui.jmapviewer.interfaces;
002    
003    //License: GPL. Copyright 2008 by Jan Peter Stotz
004    
005    import org.openstreetmap.gui.jmapviewer.Tile;
006    
007    /**
008     * Interface for implementing a tile loader. Tiles are usually loaded via HTTP
009     * or from a file.
010     *
011     * @author Jan Peter Stotz
012     */
013    public interface TileLoader {
014    
015        /**
016         * A typical implementation of this function should create and return a
017         * new {@link TileJob} instance that performs the load action.
018         *
019         * @param tile the tile to be loaded
020         * @return {@link TileJob} implementation that performs the desired load
021         *          action.
022         */
023        public TileJob createTileLoaderJob(Tile tile);
024    }