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