docs: ITileDataSink

This commit is contained in:
Hannes Janetzek 2014-04-02 17:59:48 +02:00
parent 3297998a42
commit e1feb4e5b7

View File

@ -20,17 +20,25 @@ import org.oscim.backend.canvas.Bitmap;
import org.oscim.core.MapElement; import org.oscim.core.MapElement;
/** /**
* MapDatabase callback (implemented by MapTileLoader) * ITileDataSink callbacks (implemented by MapTileLoader)
* .
* NOTE: MapElement passed belong to the caller! i.e. dont hold
* references to any of its data after callback function returns.
*/ */
public interface ITileDataSink { public interface ITileDataSink {
/**
* Pass read MapElement data to loader.
* <p>
* NOTE: MapElement passed belong to the caller! i.e. dont hold references
* to any of its data after callback function returns.
*/
void process(MapElement element); void process(MapElement element);
/**
* Pass read Bitmap data to loader.
*/
void setTileImage(Bitmap bitmap); void setTileImage(Bitmap bitmap);
/**
* Notify loader that tile loading is completed.
*/
void completed(QueryResult result); void completed(QueryResult result);
public static enum QueryResult { public static enum QueryResult {