001// License: GPL. For details, see Readme.txt file. 002package org.openstreetmap.gui.jmapviewer.interfaces; 003 004import org.openstreetmap.gui.jmapviewer.Tile; 005 006/** 007 * This listener listens to successful tile loads. 008 */ 009@FunctionalInterface 010public interface TileLoaderListener { 011 012 /** 013 * Will be called if a new {@link Tile} has been loaded successfully. 014 * Loaded can mean downloaded or loaded from file cache. 015 * 016 * @param tile The tile 017 * @param success {@code true} if the tile has been loaded successfully, {@code false} otherwise 018 */ 019 void tileLoadingFinished(Tile tile, boolean success); 020}