001// License: GPL. For details, see Readme.txt file. 002package org.openstreetmap.gui.jmapviewer.interfaces; 003 004import org.openstreetmap.gui.jmapviewer.Tile; 005 006public interface TileLoaderListener { 007 008 /** 009 * Will be called if a new {@link Tile} has been loaded successfully. 010 * Loaded can mean downloaded or loaded from file cache. 011 * 012 * @param tile 013 */ 014 public void tileLoadingFinished(Tile tile, boolean success); 015 016 /** 017 * Return the {@link TileCache} class containing {@link Tile} 018 * data for requested and loaded tiles 019 * 020 * @return tile information caching class 021 */ 022 public TileCache getTileCache(); 023}