public class SimpleFastPointOverlayOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SimpleFastPointOverlayOptions.LabelPolicy |
static class |
SimpleFastPointOverlayOptions.RenderingAlgorithm |
static class |
SimpleFastPointOverlayOptions.Shape |
Modifier and Type | Field and Description |
---|---|
protected SimpleFastPointOverlayOptions.RenderingAlgorithm |
mAlgorithm |
protected int |
mCellSize |
protected float |
mCircleRadius |
protected boolean |
mClickable |
protected SimpleFastPointOverlayOptions.LabelPolicy |
mLabelPolicy |
protected int |
mMaxNShownLabels |
protected int |
mMinZoomShowLabels |
protected Paint |
mPointStyle |
protected float |
mSelectedCircleRadius |
protected Paint |
mSelectedPointStyle |
protected SimpleFastPointOverlayOptions.Shape |
mSymbol |
protected Paint |
mTextStyle |
Constructor and Description |
---|
SimpleFastPointOverlayOptions() |
Modifier and Type | Method and Description |
---|---|
static SimpleFastPointOverlayOptions |
getDefaultStyle()
Creates a new
SimpleFastPointOverlayOptions object with default options. |
SimpleFastPointOverlayOptions |
setAlgorithm(SimpleFastPointOverlayOptions.RenderingAlgorithm algorithm)
Sets the rendering algorithm.
|
SimpleFastPointOverlayOptions |
setCellSize(int cellSize)
Sets the grid cell size used for indexing, in pixels.
|
SimpleFastPointOverlayOptions |
setIsClickable(boolean clickable)
Sets whether this overlay is clickable or not.
|
SimpleFastPointOverlayOptions |
setLabelPolicy(SimpleFastPointOverlayOptions.LabelPolicy labelPolicy)
Sets the policy for displaying point labels.
|
SimpleFastPointOverlayOptions |
setMaxNShownLabels(int maxNShownLabels)
Sets the threshold (nr.
|
SimpleFastPointOverlayOptions |
setMinZoomShowLabels(int minZoomShowLabels)
Sets the minimum zoom level at which the labels should be drawn.
|
SimpleFastPointOverlayOptions |
setPointStyle(Paint style)
Sets the style for the point overlay, which is applied to all circles.
|
SimpleFastPointOverlayOptions |
setRadius(float radius)
Sets the radius of the circles to be drawn.
|
SimpleFastPointOverlayOptions |
setSelectedPointStyle(Paint style)
Sets the style for the selected point.
|
SimpleFastPointOverlayOptions |
setSelectedRadius(float radius)
Sets the radius of the selected point's circle.
|
SimpleFastPointOverlayOptions |
setSymbol(SimpleFastPointOverlayOptions.Shape symbol)
Sets the symbol shape for this layer.
|
SimpleFastPointOverlayOptions |
setTextStyle(Paint textStyle)
Sets the style for the labels.
|
protected Paint mPointStyle
protected Paint mSelectedPointStyle
protected Paint mTextStyle
protected float mCircleRadius
protected float mSelectedCircleRadius
protected boolean mClickable
protected int mCellSize
protected SimpleFastPointOverlayOptions.RenderingAlgorithm mAlgorithm
protected SimpleFastPointOverlayOptions.Shape mSymbol
protected SimpleFastPointOverlayOptions.LabelPolicy mLabelPolicy
protected int mMaxNShownLabels
protected int mMinZoomShowLabels
public static SimpleFastPointOverlayOptions getDefaultStyle()
SimpleFastPointOverlayOptions
object with default options.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setPointStyle(Paint style)
style
- A Paint object.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setSelectedPointStyle(Paint style)
style
- A Paint object.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setRadius(float radius)
radius
- Radius.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setSelectedRadius(float radius)
radius
- Radius.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setIsClickable(boolean clickable)
clickable
- True or false.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setCellSize(int cellSize)
cellSize
- The cell size in pixels.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setAlgorithm(SimpleFastPointOverlayOptions.RenderingAlgorithm algorithm)
algorithm
- A SimpleFastPointOverlayOptions.RenderingAlgorithm
.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setSymbol(SimpleFastPointOverlayOptions.Shape symbol)
symbol
- The symbol, currently CIRCLE or SQUARE.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setTextStyle(Paint textStyle)
textStyle
- The style.SimpleFastPointOverlayOptions
public SimpleFastPointOverlayOptions setMinZoomShowLabels(int minZoomShowLabels)
minZoomShowLabels
- The zoom level.public SimpleFastPointOverlayOptions setMaxNShownLabels(int maxNShownLabels)
maxNShownLabels
- The maximum number of visible pointspublic SimpleFastPointOverlayOptions setLabelPolicy(SimpleFastPointOverlayOptions.LabelPolicy labelPolicy)
MinZoomShowLabels
DENSITY_THRESHOLD: Labels are not displayed when the number of visible points is larger
than MaxNShownLabels
. This only works for MAXIMUM_OPTIMIZATIONlabelPolicy
- One of ZOOM_THRESHOLD
or DENSITY_THRESHOLD