Interface ClusterRenderer<T extends ClusterItem>
-
- All Known Implementing Classes:
DefaultClusterRenderer
public interface ClusterRenderer<T extends ClusterItem>Renders clusters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetClusterTextAppearance(int clusterSize)Called to determine the text appearance of a cluster.intgetColor(int clusterSize)Called to determine the color of a Cluster.voidonAdd()Called when the view is added.voidonClustersChanged(java.util.Set<? extends Cluster<T>> clusters)Called when the view needs to be updated because new clusters need to be displayed.voidonRemove()Called when the view is removed.voidsetAnimation(boolean animate)Called to set animation on or offvoidsetAnimationDuration(long animationDurationMs)Sets the length of the animation in milliseconds.voidsetOnClusterClickListener(ClusterManager.OnClusterClickListener<T> listener)voidsetOnClusterInfoWindowClickListener(ClusterManager.OnClusterInfoWindowClickListener<T> listener)voidsetOnClusterInfoWindowLongClickListener(ClusterManager.OnClusterInfoWindowLongClickListener<T> listener)voidsetOnClusterItemClickListener(ClusterManager.OnClusterItemClickListener<T> listener)voidsetOnClusterItemInfoWindowClickListener(ClusterManager.OnClusterItemInfoWindowClickListener<T> listener)voidsetOnClusterItemInfoWindowLongClickListener(ClusterManager.OnClusterItemInfoWindowLongClickListener<T> listener)
-
-
-
Method Detail
-
onClustersChanged
void onClustersChanged(java.util.Set<? extends Cluster<T>> clusters)
Called when the view needs to be updated because new clusters need to be displayed.- Parameters:
clusters- the clusters to be displayed.
-
setOnClusterClickListener
void setOnClusterClickListener(ClusterManager.OnClusterClickListener<T> listener)
-
setOnClusterInfoWindowClickListener
void setOnClusterInfoWindowClickListener(ClusterManager.OnClusterInfoWindowClickListener<T> listener)
-
setOnClusterInfoWindowLongClickListener
void setOnClusterInfoWindowLongClickListener(ClusterManager.OnClusterInfoWindowLongClickListener<T> listener)
-
setOnClusterItemClickListener
void setOnClusterItemClickListener(ClusterManager.OnClusterItemClickListener<T> listener)
-
setOnClusterItemInfoWindowClickListener
void setOnClusterItemInfoWindowClickListener(ClusterManager.OnClusterItemInfoWindowClickListener<T> listener)
-
setOnClusterItemInfoWindowLongClickListener
void setOnClusterItemInfoWindowLongClickListener(ClusterManager.OnClusterItemInfoWindowLongClickListener<T> listener)
-
setAnimation
void setAnimation(boolean animate)
Called to set animation on or off
-
setAnimationDuration
void setAnimationDuration(long animationDurationMs)
Sets the length of the animation in milliseconds.
-
onAdd
void onAdd()
Called when the view is added.
-
onRemove
void onRemove()
Called when the view is removed.
-
getColor
int getColor(int clusterSize)
Called to determine the color of a Cluster.
-
getClusterTextAppearance
@StyleRes int getClusterTextAppearance(int clusterSize)
Called to determine the text appearance of a cluster.
-
-