public class ClusterTheme
extends java.lang.Object
ClusterLayer.setTheme(ClusterTheme)| Constructor and Description |
|---|
ClusterTheme()
Creates a new theme with the default presentation style.
|
ClusterTheme(ClusterTheme theme)
Creates a new theme by copying ranges and styles from another.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setStyleForDensityRange(ClusterDensityRange range,
ClusterStyle style)
Sets particular style for a specific range.
|
void |
setStyleForDensityRange(int from,
int to,
ClusterStyle style)
Sets particular style for a specific range.
|
public ClusterTheme()
public ClusterTheme(ClusterTheme theme)
theme - theme to copy frompublic void setStyleForDensityRange(int from,
int to,
ClusterStyle style)
The default style is used for the ranges not set manually.
from - lower density range limit (inclusive), must be greater than
ClusterDensityRange.MINIMUM_CLUSTER_DENSITYto - upper density range limit (inclusive), must be greater than or
equal to lower limitstyle - style for this rangejava.lang.IllegalArgumentException - If one of the following occurs: the lower limit is smaller than MINIMUM_CLUSTER_DENSITY,
the lower limit is greater than the upper limit, or
the range overlaps with one of the already added ranges to this theme.java.lang.NullPointerException - if style is nullClusterTheme.setStyleForDensityRange(ClusterDensityRange, ClusterStyle)public void setStyleForDensityRange(ClusterDensityRange range, ClusterStyle style)
The default style is used for the ranges not set manually.
range - density rangestyle - style for this rangejava.lang.IllegalArgumentException - if the range overlaps with one of the already added ranges to this themejava.lang.NullPointerException - if range or style is null