public class

PointStyleBuilder

extends StyleBuilder
java.lang.Object
   ↳ com.carto.styles.StyleBuilder
     ↳ com.carto.styles.PointStyleBuilder

Class Overview

A builder class for PointStyle.

Summary

Public Constructors
PointStyleBuilder()
Constructs a PointStyleBuilder object with all parameters set to defaults.
Public Methods
PointStyle buildStyle()
Builds a new instance of the PointStyle object using previously set parameters.
synchronized void delete()
Bitmap getBitmap()
Returns the bitmap of the point.
float getClickSize()
Returns the size of the point used for click detection.
float getSize()
Returns the size of the point.
void setBitmap(Bitmap bitmap)
Sets the bitmap that will be used for drawing the point.
void setClickSize(float size)
Sets the size for the point that will be used for click detection.
void setSize(float size)
Sets the size for the point in screen density independent pixels (DP or DIP).
[Expand]
Inherited Methods
From class com.carto.styles.StyleBuilder
From class java.lang.Object

Public Constructors

public PointStyleBuilder ()

Constructs a PointStyleBuilder object with all parameters set to defaults.

Public Methods

public PointStyle buildStyle ()

Builds a new instance of the PointStyle object using previously set parameters.

Returns
  • A new PointStyle object.

public synchronized void delete ()

public Bitmap getBitmap ()

Returns the bitmap of the point.

Returns
  • The bitmap of the point.

public float getClickSize ()

Returns the size of the point used for click detection.

Returns
  • The size of the point used for click detection.

public float getSize ()

Returns the size of the point.

Returns
  • The size of the point.

public void setBitmap (Bitmap bitmap)

Sets the bitmap that will be used for drawing the point. The default is "default_point.png".

Parameters
bitmap The new bitmap for the point.

public void setClickSize (float size)

Sets the size for the point that will be used for click detection.
Units are screen density independent pixels (DP or DIP). If set to -1 the click size will be
calculated automatically. The default is -1.

Parameters
size The new point size in dp.

public void setSize (float size)

Sets the size for the point in screen density independent pixels (DP or DIP). The default is 20.

Parameters
size The new point size in dp.