1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.maps.tile;
14 import java.awt.Image;
17 * @author Tuukka Lehtonen
19 public interface ITileListener {
22 * Indicates that the a request for the specified tile has been canceled for
25 * @param key the requested tile that was canceled
27 void tileCanceled(TileKey key);
30 * Indicates that the a request for the specified tile has failed for some
33 * @param key the requested tile
34 * @param e the reason for the failure
36 void tileFailed(TileKey key, Throwable e);
39 * Indicates that the a request for the specified tile has been completed
40 * and the results delivered.
42 * @param key the requested tile
43 * @param image the result image
45 void tileUpdated(TileKey key, Image image);