public class ClusterGenerator
extends java.lang.Object
This is the protocol for marker/label clustering. You must fill this in and register the cluster
Modifier and Type | Field and Description |
---|---|
BaseController |
baseController |
Constructor and Description |
---|
ClusterGenerator() |
Modifier and Type | Method and Description |
---|---|
Point2d |
clusterLayoutSize()
The size of the cluster that will be created.
|
int |
clusterNumber()
The Cluster number is referenced by screen markers.
|
void |
endClusterGroup()
Called at the end of clustering.
|
ClusterGroup |
makeClusterGroup(ClusterInfo clusterInfo)
Generate a cluster group for a given collection of markers.
|
long |
makeClusterGroupJNI(int num) |
double |
markerAnimationTime()
How long to animate markers the join and leave a cluster
|
boolean |
selectable()
Set this if you want cluster to be user selectable.
|
void |
startClusterGroup()
Called at the start of clustering.
|
public BaseController baseController
public void startClusterGroup()
Called right before we start generating clusters. Do you setup here if need be.
public ClusterGroup makeClusterGroup(ClusterInfo clusterInfo)
Generate an image and size to represent the number of marker/labels we're consolidating.
clusterInfo
- public long makeClusterGroupJNI(int num)
public void endClusterGroup()
If you were doing optimization (for image reuse, say) clean it up here.
public int clusterNumber()
public Point2d clusterLayoutSize()
This is the biggest cluster you're likely to create. We use it to figure overlaps between clusters.
public boolean selectable()
public double markerAnimationTime()