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.HasVectorSourceOptionsNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
Source.HasAttributions, Source.HasAttributionsCollapsible, Source.HasProjection, Source.HasSourceOptions, Source.HasWrapXNested classes/interfaces inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
MapObservableObject.ObjectChangeEvent -
Field Summary
FieldsFields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
overlaps, useSpatialIndexFields inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
attributions, attributionsCollapsible, projection, wrapXFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllFeatures(Collection<Feature> features) Adds a collection of features.voidaddFeature(Feature feature) Adds feature to the source.voidRemoves all features from the source.voidremoveFeature(Feature feature) Removes a feature from the source.Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractVectorSource
getOverlaps, getUseSpatialIndex, setOverlaps, setUseSpatialIndexMethods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributions, getAttributionsCollapsible, getProjection, getWrapX, setAttributions, setAttributionsCollapsible, setProjection, setWrapXMethods 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, 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.
-