| java.lang.Object | ||
| ↳ | com.carto.vectorelements.VectorElement | |
| ↳ | com.carto.vectorelements.GeometryCollection | |
A collection of multiple geometries that can be displayed on the map.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
GeometryCollection(MultiGeometry geometry, GeometryCollectionStyle style)
Constructs a new GeometryCollection object from multigeometry and style.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | delete() | ||||||||||
| MultiGeometry |
getGeometry()
Returns the geometry object that defines the location of this vector element.
| ||||||||||
| GeometryCollectionStyle |
getStyle()
Returns the style of this geometry collection.
| ||||||||||
| void |
setGeometry(MultiGeometry geometry)
Sets the geometry for this geometry collection.
| ||||||||||
| void |
setStyle(GeometryCollectionStyle style)
Sets the style for this geometry collection.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.carto.vectorelements.VectorElement
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a new GeometryCollection object from multigeometry and style.
| geometry | The multigeometry containing possibly points, lines, polygons. |
|---|---|
| style | The style defining multigeometry rendering. |
Returns the geometry object that defines the location of this vector element.
Returns the style of this geometry collection.
Sets the geometry for this geometry collection.
| geometry | The new geometry object. |
|---|
Sets the style for this geometry collection.
| style | The new style that defines defines multigeometry rendering. |
|---|