public class

GeometryCollection

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

Class Overview

A collection of multiple geometries that can be displayed on the map.

Summary

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

Public Constructors

public GeometryCollection (MultiGeometry geometry, GeometryCollectionStyle style)

Constructs a new GeometryCollection object from multigeometry and style.

Parameters
geometry The multigeometry containing possibly points, lines, polygons.
style The style defining multigeometry rendering.

Public Methods

public synchronized void delete ()

public MultiGeometry getGeometry ()

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

Returns
  • The geometry object of this vector element.

public GeometryCollectionStyle getStyle ()

Returns the style of this geometry collection.

Returns
  • The style that defines multigeometry rendering.

public void setGeometry (MultiGeometry geometry)

Sets the geometry for this geometry collection.

Parameters
geometry The new geometry object.

public void setStyle (GeometryCollectionStyle style)

Sets the style for this geometry collection.

Parameters
style The new style that defines defines multigeometry rendering.