Back to project page android-maps-utils.
The source code is released under:
Apache License
If you think the Android project android-maps-utils listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.google.maps.android.clustering.view; /*ww w . j a v a 2 s .c o m*/ import com.google.maps.android.clustering.Cluster; import com.google.maps.android.clustering.ClusterItem; import com.google.maps.android.clustering.ClusterManager; import java.util.Set; /** * Renders clusters. */ public interface ClusterRenderer<T extends ClusterItem> { /** * Called when the view needs to be updated because new clusters need to be displayed. * @param clusters the clusters to be displayed. */ void onClustersChanged(Set<? extends Cluster<T>> clusters); void setOnClusterClickListener(ClusterManager.OnClusterClickListener<T> listener); void setOnClusterInfoWindowClickListener(ClusterManager.OnClusterInfoWindowClickListener<T> listener); void setOnClusterItemClickListener(ClusterManager.OnClusterItemClickListener<T> listener); void setOnClusterItemInfoWindowClickListener(ClusterManager.OnClusterItemInfoWindowClickListener<T> listener); /** * Called when the view is added. */ void onAdd(); /** * Called when the view is removed. */ void onRemove(); }