-
- All Implemented Interfaces:
-
com.google.maps.android.clustering.algo.Algorithm
public interface ScreenBasedAlgorithm<T extends ClusterItem> implements Algorithm<T>
This abstract interface provides two methods: one to determine if the map should recluster when the map moves ({@link #shouldReclusterOnMapMovement()}), and another method to determine the behavior when the camera moves ({@link #onCameraChange(CameraPosition)} ()})
-
-
Method Summary
Modifier and Type Method Description abstract BooleanshouldReclusterOnMapMovement()abstract UnitonCameraChange(CameraPosition position)abstract Collection<T>getItems()abstract IntegergetMaxDistanceBetweenClusteredItems()abstract UnitsetMaxDistanceBetweenClusteredItems(Integer maxDistanceBetweenClusteredItems)-
Methods inherited from class com.google.maps.android.clustering.algo.ScreenBasedAlgorithm
addItem, addItems, clearItems, getClusters, lock, removeItem, removeItems, unlock, updateItem -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
shouldReclusterOnMapMovement
abstract Boolean shouldReclusterOnMapMovement()
-
onCameraChange
abstract Unit onCameraChange(CameraPosition position)
-
getItems
abstract Collection<T> getItems()
-
getMaxDistanceBetweenClusteredItems
abstract Integer getMaxDistanceBetweenClusteredItems()
-
setMaxDistanceBetweenClusteredItems
abstract Unit setMaxDistanceBetweenClusteredItems(Integer maxDistanceBetweenClusteredItems)
-
-
-
-