| java.lang.Object | ||
| ↳ | com.carto.geometry.Geometry | |
| ↳ | com.carto.geometry.MultiGeometry | |
Known Direct Subclasses
|
A generic multi geometry container.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
MultiGeometry(GeometryVector geometries)
Constructs a MultiGeometry from a vector of geometry objects.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | delete() | ||||||||||
| MapPos |
getCenterPos()
Returns the center point of the geometry.
| ||||||||||
| Geometry |
getGeometry(int index)
Returns the geometry at the specified index.
| ||||||||||
| int |
getGeometryCount()
Returns the number of geometry objects in this multi geometry container.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.carto.geometry.Geometry
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a MultiGeometry from a vector of geometry objects.
| geometries | The geometries for multi geometry. |
|---|
Returns the center point of the geometry.
Returns the geometry at the specified index. Index must be between 0 and getGeometryCount (exclusive)
| index | The index of the geometry. |
|---|
| IndexOutOfBoundsException | If the index is out of range. |
|---|
Returns the number of geometry objects in this multi geometry container.