Class Feature
- java.lang.Object
-
- com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
-
- com.vaadin.flow.component.map.configuration.Feature
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PointBasedFeature
public abstract class Feature extends AbstractConfigurationObject
A geographic feature to be displayed on a map. A feature represents a point of interest, such as an address, a building, a vehicle, or any other entity.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
propertyChangeSupport
-
-
Constructor Summary
Constructors Constructor Description Feature()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleGeometry
getGeometry()
The geometry representing the feature, for example aPoint
or a polygon.Style
getStyle()
TheStyle
defines how the feature should be visually displayed.String
getType()
The unique type name of this class.void
setGeometry(SimpleGeometry geometry)
Sets the geometry representing the feature.void
setStyle(Style style)
Sets the style that defines how the feature should be visually displayed.-
Methods inherited from class com.vaadin.flow.component.map.configuration.AbstractConfigurationObject
addChild, addPropertyChangeListener, collectChanges, deepMarkAsDirty, getId, markAsDirty, notifyChange, notifyChange, removeChild, removePropertyChangeListener, setId, update
-
-
-
-
Method Detail
-
getType
public String getType()
Description copied from class:AbstractConfigurationObject
The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.- Specified by:
getType
in classAbstractConfigurationObject
-
getGeometry
public SimpleGeometry getGeometry()
The geometry representing the feature, for example aPoint
or a polygon.- Returns:
- the current geometry
-
setGeometry
public void setGeometry(SimpleGeometry geometry)
Sets the geometry representing the feature.- Parameters:
geometry
- the new geometry, not null
-
getStyle
public Style getStyle()
TheStyle
defines how the feature should be visually displayed.- Returns:
- the current style
-
setStyle
public void setStyle(Style style)
Sets the style that defines how the feature should be visually displayed.- Parameters:
style
- the new style, not null
-
-