Class NoOpVectorSource
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
io.jmix.mapsflowui.kit.component.model.source.NoOpVectorSource
- All Implemented Interfaces:
AbstractVectorSource.HasOverlaps,AbstractVectorSource.HasUseSpatialIndex,AbstractVectorSource.HasVectorSourceOptions,Source.HasAttributions,Source.HasWrapX,Serializable
public class NoOpVectorSource
extends AbstractFeatureSource
implements AbstractVectorSource.HasVectorSourceOptions, Source.HasAttributions, Source.HasWrapX
INTERNAL.
Stub implementation, do not use in application. Used by Jmix Studio for showing preview.
- 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
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractFeatureSource
featuresFields 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, id, projection, wrapXFields inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
children, dirty, eventBus, listener, metaProperties, parent, removedChildren, syncId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetType()getWrapX()voidsetAttributions(List<String> attributions) voidsetOverlaps(Boolean overlaps) Sets whether source may have overlapping geometries.voidsetUseSpatialIndex(Boolean useSpatialIndex) Sets whether to use spatial index.voidMethods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractFeatureSource
addAllFeatures, addFeature, getFeatures, removeAllFeatures, removeFeatureMethods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributionsCollapsible, getId, getProjection, setAttributionsCollapsible, setId, setProjectionMethods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Constructor Details
-
NoOpVectorSource
public NoOpVectorSource()
-
-
Method Details
-
getType
- Specified by:
getTypein classMapObservableObject
-
getAttributions
Description copied from class:Source- Specified by:
getAttributionsin interfaceSource.HasAttributions- Overrides:
getAttributionsin classSource- Returns:
- the attributions of the source or
nullif not set
-
setAttributions
Description copied from class:Source- Specified by:
setAttributionsin interfaceSource.HasAttributions- Overrides:
setAttributionsin classSource- Parameters:
attributions- info about copyrights and licences
-
getWrapX
Description copied from class:Source- Specified by:
getWrapXin interfaceSource.HasWrapX- Overrides:
getWrapXin classSource- Returns:
- whether the source should be looped along the X coordinate or
nullif not set
-
setWrapX
Description copied from class:Source- Specified by:
setWrapXin interfaceSource.HasWrapX- Overrides:
setWrapXin classSource- Parameters:
wrapX- whether the source should be looped along the X coordinate
-
getOverlaps
- Specified by:
getOverlapsin interfaceAbstractVectorSource.HasOverlaps- Overrides:
getOverlapsin classAbstractVectorSource- Returns:
- overlaps value or
nullif not set
-
setOverlaps
Description copied from interface:AbstractVectorSource.HasOverlapsSets whether source may have overlapping geometries. The default value istrue.Setting this to
false(e.g. for sources with polygons that represent administrative boundaries) allows the renderer to optimise fill and stroke operations.Note, overlaps attribute is set only at creation time and cannot be changed at runtime.
- Specified by:
setOverlapsin interfaceAbstractVectorSource.HasOverlaps- Overrides:
setOverlapsin classAbstractVectorSource- Parameters:
overlaps- overlaps option
-
getUseSpatialIndex
- Specified by:
getUseSpatialIndexin interfaceAbstractVectorSource.HasUseSpatialIndex- Overrides:
getUseSpatialIndexin classAbstractVectorSource- Returns:
- useSpatialIndex value or
nullif not set
-
setUseSpatialIndex
Description copied from interface:AbstractVectorSource.HasUseSpatialIndexSets whether to use spatial index. When features are removed and added frequently, and the total number of features is low, setting this tofalsemay improve performance. The default value istrue.- Specified by:
setUseSpatialIndexin interfaceAbstractVectorSource.HasUseSpatialIndex- Overrides:
setUseSpatialIndexin classAbstractVectorSource- Parameters:
useSpatialIndex- whether to use spatial index
-