public class BasicClusterGenerator extends ClusterGenerator
This cluster generator will make images for grouped clusters of markers/labels.
baseController| Constructor and Description |
|---|
BasicClusterGenerator(android.graphics.Bitmap bitmap,
int clusterNumber,
Point2d markerSize,
float textSize,
BaseController viewC,
android.app.Activity activity) |
BasicClusterGenerator(int[] colors,
int clusterNumber,
Point2d markerSize,
BaseController viewC,
android.app.Activity activity)
Initialize with a list of colors.
|
| 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.
|
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 |
shutdown() |
void |
startClusterGroup()
Called at the start of clustering.
|
makeClusterGroupJNIpublic BasicClusterGenerator(int[] colors,
int clusterNumber,
Point2d markerSize,
BaseController viewC,
android.app.Activity activity)
Each order of magnitude will use another color. Must provide at least 1.
public BasicClusterGenerator(android.graphics.Bitmap bitmap,
int clusterNumber,
Point2d markerSize,
float textSize,
BaseController viewC,
android.app.Activity activity)
public void shutdown()
public void startClusterGroup()
ClusterGeneratorCalled right before we start generating clusters. Do you setup here if need be.
startClusterGroup in class ClusterGeneratorpublic ClusterGroup makeClusterGroup(ClusterInfo clusterInfo)
ClusterGeneratorGenerate an image and size to represent the number of marker/labels we're consolidating.
makeClusterGroup in class ClusterGeneratorpublic void endClusterGroup()
ClusterGeneratorIf you were doing optimization (for image reuse, say) clean it up here.
endClusterGroup in class ClusterGeneratorpublic int clusterNumber()
ClusterGeneratorclusterNumber in class ClusterGeneratorpublic Point2d clusterLayoutSize()
ClusterGeneratorThis is the biggest cluster you're likely to create. We use it to figure overlaps between clusters.
clusterLayoutSize in class ClusterGeneratorpublic boolean selectable()
ClusterGeneratorselectable in class ClusterGeneratorpublic double markerAnimationTime()
ClusterGeneratormarkerAnimationTime in class ClusterGenerator