java.lang.Object | ||
↳ | com.carto.styles.StyleBuilder | |
↳ | com.carto.styles.PointStyleBuilder |
A builder class for PointStyle.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a PointStyleBuilder object with all parameters set to defaults.
Builds a new instance of the PointStyle object using previously set parameters.
Returns the size of the point used for click detection.
Returns the size of the point.
Sets the bitmap that will be used for drawing the point. The default is "default_point.png".
bitmap | The new bitmap for the point. |
---|
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.
size | The new point size in dp. |
---|
Sets the size for the point in screen density independent pixels (DP or DIP). The default is 20.
size | The new point size in dp. |
---|