org.zkoss.gmaps
Interface MapModel

All Known Implementing Classes:
AbstractMapModel, MapModelList, MapModelMap, MapModelSet

public interface MapModel

This interface defines the methods that Gmaps used to get the content of items.

Author:
henrichen
See Also:
Gmaps, MapitemRenderer

Method Summary
 void addMapDataListener(MapDataListener listener)
          Adds a listener to the Maps that's notified each time a change to the data model occurs.
 void clear()
          Clear all items of this model.
 java.util.Collection getItemsIn(double swlat, double swlng, double nelat, double nelng, double cenlat, double cenlng, int zoom)
          Returns the items in the specified bounds (south-west to north-east), center latitude, center longitude, and zoom level.
 void removeMapDataListener(MapDataListener listener)
          Remove a listener from the list that's notified each time a change to the the data model occurs.
 

Method Detail

getItemsIn

java.util.Collection getItemsIn(double swlat,
                                double swlng,
                                double nelat,
                                double nelng,
                                double cenlat,
                                double cenlng,
                                int zoom)
Returns the items in the specified bounds (south-west to north-east), center latitude, center longitude, and zoom level.

Parameters:
swlat - south-west latitude
swlng - south-west longitude
nelat - north-east latitude
nelng - north-east longitude
cenlat - center latitude
cenlng - center longitude
zoom - current zoom level
Returns:
the items in the specified bounds (south-west to north-east) center latitude, center longitude, and zoom level.

clear

void clear()
Clear all items of this model.


addMapDataListener

void addMapDataListener(MapDataListener listener)
Adds a listener to the Maps that's notified each time a change to the data model occurs.

Parameters:
listener -

removeMapDataListener

void removeMapDataListener(MapDataListener listener)
Remove a listener from the list that's notified each time a change to the the data model occurs.

Parameters:
listener -


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.