Class AbstractFeatureSource
java.lang.Object
io.jmix.mapsflowui.kit.component.model.MapObservableObject
io.jmix.mapsflowui.kit.component.model.source.Source
io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
io.jmix.mapsflowui.kit.component.model.source.AbstractFeatureSource
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoOpVectorSource
,VectorSource
Source contains a list of features.
For more details see: VectorSource docs
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
AbstractVectorSource.HasOverlaps, AbstractVectorSource.HasUseSpatialIndex, AbstractVectorSource.HasVectorSourceOptions
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
Source.HasAttributions, Source.HasAttributionsCollapsible, Source.HasProjection, Source.HasSourceOptions, Source.HasWrapX
Nested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent
-
Field Summary
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
overlaps, useSpatialIndex
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, id, projection, wrapX
Fields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllFeatures
(Collection<Feature> features) Adds a collection of features.void
addFeature
(Feature feature) Adds feature to the source.void
Removes all features from the source.void
removeFeature
(Feature feature) Removes a feature from the source.Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
getOverlaps, getUseSpatialIndex, setOverlaps, setUseSpatialIndex
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributions, getAttributionsCollapsible, getId, getProjection, getWrapX, setAttributions, setAttributionsCollapsible, setId, setProjection, setWrapX
Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, getType, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Field Details
-
features
-
-
Constructor Details
-
AbstractFeatureSource
public AbstractFeatureSource()
-
-
Method Details
-
getFeatures
- Returns:
- unmodifiable list of features or empty collection if no features added
-
addFeature
Adds feature to the source.- Parameters:
feature
- feature to add
-
addAllFeatures
Adds a collection of features.- Parameters:
features
- collection of features to add
-
removeFeature
Removes a feature from the source.- Parameters:
feature
- feature to remove
-
removeAllFeatures
public void removeAllFeatures()Removes all features from the source.
-