]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.maps/src/org/simantics/maps/tile/ITileListener.java
Share some projects for Simantics District
[simantics/district.git] / org.simantics.district.maps / src / org / simantics / maps / tile / ITileListener.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.maps.tile;
13
14 import java.awt.Image;
15
16 /**
17  * @author Tuukka Lehtonen
18  */
19 public interface ITileListener {
20
21     /**
22      * Indicates that the a request for the specified tile has been canceled for
23      * some reason.
24      * 
25      * @param key the requested tile that was canceled
26      */
27     void tileCanceled(TileKey key);
28
29     /**
30      * Indicates that the a request for the specified tile has failed for some
31      * reason.
32      * 
33      * @param key the requested tile
34      * @param e the reason for the failure
35      */
36     void tileFailed(TileKey key, Throwable e);
37
38     /**
39      * Indicates that the a request for the specified tile has been completed
40      * and the results delivered.
41      * 
42      * @param key the requested tile
43      * @param image the result image
44      */
45     void tileUpdated(TileKey key, Image image);
46
47 }