public class

Point

extends VectorElement
java.lang.Object
   ↳ com.carto.vectorelements.VectorElement
     ↳ com.carto.vectorelements.Point

Class Overview

A geometric point that can be displayed on the map.

Summary

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
From class com.carto.vectorelements.VectorElement
From class java.lang.Object

Public Constructors

public Point (PointGeometry geometry, PointStyle style)

Constructs a Point object from a geometry object and a style.

Parameters
geometry The geometry object that defines the location of this point.
style The style that defines what this point looks like.

public Point (MapPos pos, PointStyle style)

Constructs a Point object from a map position and a style.

Parameters
pos The map position that defines the location of this point.
style The style that defines what this point looks like.

Public Methods

public synchronized void delete ()

public PointGeometry getGeometry ()

Returns the geometry object that defines the location of this vector element.

Returns
  • The geometry object of this vector element.

public MapPos getPos ()

Returns the location of this point.

Returns
  • The map position that defines the location of this point.

public PointStyle getStyle ()

Returns the style of this point.

Returns
  • The style that defines what this point looks like.

public void setGeometry (PointGeometry geometry)

Sets the location for this point.

Parameters
geometry The new geometry object that defines the location of this point.

public void setPos (MapPos pos)

Sets the location of this point.

Parameters
pos The new map position that defines the location of this point.

public void setStyle (PointStyle style)

Sets a style for this point.

Parameters
style The new style that defines what this point looks like.