java.lang.Object | ||
↳ | com.carto.vectorelements.VectorElement | |
↳ | com.carto.vectorelements.Point |
A geometric point that can be displayed on the map.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Point(PointGeometry geometry, PointStyle style)
Constructs a Point object from a geometry object and a style.
| |||||||||||
Point(MapPos pos, PointStyle style)
Constructs a Point object from a map position and a style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
PointGeometry |
getGeometry()
Returns the geometry object that defines the location of this vector element.
| ||||||||||
MapPos |
getPos()
Returns the location of this point.
| ||||||||||
PointStyle |
getStyle()
Returns the style of this point.
| ||||||||||
void |
setGeometry(PointGeometry geometry)
Sets the location for this point.
| ||||||||||
void |
setPos(MapPos pos)
Sets the location of this point.
| ||||||||||
void |
setStyle(PointStyle style)
Sets a style for this point.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a Point object from a geometry object and a style.
geometry | The geometry object that defines the location of this point. |
---|---|
style | The style that defines what this point looks like. |
Constructs a Point object from a map position and a style.
pos | The map position that defines the location of this point. |
---|---|
style | The style that defines what this point looks like. |
Returns the geometry object that defines the location of this vector element.
Returns the location of this point.
Returns the style of this point.
Sets the location for this point.
geometry | The new geometry object that defines the location of this point. |
---|
Sets the location of this point.
pos | The new map position that defines the location of this point. |
---|
Sets a style for this point.
style | The new style that defines what this point looks like. |
---|