com.bbn.openmap.dataAccess.mapTile
Interface MapTileFactory

All Known Implementing Classes:
GreyServerMapTileFactory, GreyStandardMapTileFactory, ServerMapTileFactory, StandardMapTileFactory

public interface MapTileFactory

An object that fetches tiles for a given projection. It could cache the tiles, it can get them from anywhere it might want to.

Author:
dietrick

Method Summary
 OMGraphicList getTiles(Projection proj)
          Create an OMGraphicList with a set of tiles on it.
 OMGraphicList getTiles(Projection proj, int zoomLevel)
          Create an OMGraphicList that covers the projection with tiles that suit the specified zoom level.
 OMGraphicList getTiles(Projection proj, int zoomLevel, OMGraphicList list)
          Add tiles to OMGraphicList provided that suit the given projection.
 void reset()
          Tell the factory to clean up resources.
 void setRepaintCallback(java.awt.Component callback)
          Set a component in the tile factory that should be told to repaint when new tiles become available.
 

Method Detail

getTiles

OMGraphicList getTiles(Projection proj)
Create an OMGraphicList with a set of tiles on it.

Parameters:
proj -
Returns:
OMGraphicList that was created.
Throws:
java.lang.InterruptedException

getTiles

OMGraphicList getTiles(Projection proj,
                       int zoomLevel)
Create an OMGraphicList that covers the projection with tiles that suit the specified zoom level.

Throws:
java.lang.InterruptedException

getTiles

OMGraphicList getTiles(Projection proj,
                       int zoomLevel,
                       OMGraphicList list)
Add tiles to OMGraphicList provided that suit the given projection.

Parameters:
proj -
list -
Returns:
the OMGraphicList provided.
Throws:
java.lang.InterruptedException

setRepaintCallback

void setRepaintCallback(java.awt.Component callback)
Set a component in the tile factory that should be told to repaint when new tiles become available. Using the callback assumes that you have called getTiles() with an OMGraphicList that will be rendered by the callback. Tiles added to the OMGraphicList should be generated with the projection passed in getTiles();

Parameters:
callback - java.awt.Component to call repaint on.

reset

void reset()
Tell the factory to clean up resources.



Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details