Package com.massifmaps.vectorelements
Class GeometryCollection
java.lang.Object
com.massifmaps.vectorelements.VectorElement
com.massifmaps.vectorelements.GeometryCollection
A collection of multiple geometries that can be displayed on the map.
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryCollection(MultiGeometry geometry, GeometryCollectionStyle style) Constructs a new GeometryCollection object from multigeometry and style. -
Method Summary
Modifier and TypeMethodDescriptionReturns the geometry object that defines the location of this vector element.getStyle()Returns the style of this geometry collection.voidsetGeometry(MultiGeometry geometry) Sets the geometry for this geometry collection.voidsetStyle(GeometryCollectionStyle style) Sets the style for this geometry collection.Methods inherited from class com.massifmaps.vectorelements.VectorElement
containsMetaDataKey, equals, getBounds, getId, getMetaData, getMetaDataElement, hashCode, isVisible, notifyElementChanged, setId, setMetaData, setMetaDataElement, setVisible
-
Constructor Details
-
GeometryCollection
Constructs a new GeometryCollection object from multigeometry and style.- Parameters:
geometry- The multigeometry containing possibly points, lines, polygons.style- The style defining multigeometry rendering.
-
-
Method Details
-
getGeometry
Description copied from class:VectorElementReturns the geometry object that defines the location of this vector element.- Overrides:
getGeometryin classVectorElement- Returns:
- The geometry object of this vector element.
-
setGeometry
Sets the geometry for this geometry collection.- Parameters:
geometry- The new geometry object.
-
getStyle
Returns the style of this geometry collection.- Returns:
- The style that defines multigeometry rendering.
-
setStyle
Sets the style for this geometry collection.- Parameters:
style- The new style that defines defines multigeometry rendering.
-