java.lang.Object | ||
↳ | com.carto.vectorelements.VectorElement | |
↳ | com.carto.vectorelements.Line |
A geometric line string that can be displayed on the map.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Line(LineGeometry geometry, LineStyle style)
Constructs a Line object from a geometry object and a style.
| |||||||||||
Line(MapPosVector poses, LineStyle style)
Constructs a Line object from a vector of map positions and a style.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
LineGeometry |
getGeometry()
Returns the geometry object that defines the location of this vector element.
| ||||||||||
MapPosVector |
getPoses()
Returns the vertices that define this line.
| ||||||||||
LineStyle |
getStyle()
Returns the style of this line.
| ||||||||||
void |
setGeometry(LineGeometry geometry)
Sets the location for this line.
| ||||||||||
void |
setPoses(MapPosVector poses)
Sets the vertices that define this line.
| ||||||||||
void |
setStyle(LineStyle style)
Sets the style for this line.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a Line object from a geometry object and a style.
geometry | The geometry object that defines the location of this line. |
---|---|
style | The style that defines what this line looks like. |
Constructs a Line object from a vector of map positions and a style.
poses | The vector of map positions that defines the location of this line. |
---|---|
style | The style that defines what this line looks like. |
Returns the geometry object that defines the location of this vector element.
Returns the vertices that define this line.
Returns the style of this line.
Sets the location for this line.
geometry | The new geometry object that defines the location of this line. |
---|
Sets the vertices that define this line.
poses | The new vector of map positions that defines this line. |
---|
Sets the style for this line.
style | The new style that defines what this line looks like. |
---|