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.AbstractEditableVectorSource
io.jmix.mapsflowui.kit.component.model.source.AbstractFeatureSource
io.jmix.mapsflowui.kit.meta.loader.NoOpVectorSource
- All Implemented Interfaces:
AbstractVectorSource.HasOverlaps
,AbstractVectorSource.HasUseSpatialIndex
,AbstractVectorSource.HasVectorSourceOptions
,Source.HasAttributions
,Source.HasWrapX
,SupportsFeatureDrag
,SupportsFeatureModify
,SupportsFeatureSelect
,Serializable
public class NoOpVectorSource
extends AbstractFeatureSource
implements AbstractVectorSource.HasVectorSourceOptions, Source.HasAttributions, Source.HasWrapX, SupportsFeatureSelect, SupportsFeatureDrag, SupportsFeatureModify
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.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.AbstractFeatureSource
features
Fields inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractEditableVectorSource
featureDragEnabled, featureModifyEnabled, featureSelectEnabled, jmixSourceFeatureDeleteRegistration, jmixSourceFeatureDragEndRegistration, jmixSourceFeatureDragStartRegistration, jmixSourceFeatureModifyEndRegistration, jmixSourceFeatureModifyStartRegistration, jmixSourceFeatureSelectionRegistration
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, metaProperties, parent, removedChildren, syncId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getType()
getWrapX()
void
setAttributions
(List<String> attributions) void
setFeatureDragEnabled
(Boolean enabled) Enables / disables feature drag mode.void
setFeatureModifyEnabled
(Boolean enabled) Enables / disables feature modify mode.void
setFeatureSelectEnabled
(Boolean enabled) Enables / disables feature select mode.void
setOverlaps
(Boolean overlaps) Sets whether source may have overlapping geometries.void
setUseSpatialIndex
(Boolean useSpatialIndex) Sets whether to use spatial index.void
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractFeatureSource
addAllFeatures, addFeature, getFeatures, removeAllFeatures, removeFeature
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractEditableVectorSource
attachJmixSourceFeatureDeleteListener, attachJmixSourceFeatureDragEndListener, attachJmixSourceFeatureDragStartListener, attachJmixSourceFeatureModifyEndListener, attachJmixSourceFeatureModifyStartListener, attachJmixSourceFeatureSelectionListener, onJmixSourceFeatureDelete, onJmixSourceFeatureDragEnd, onJmixSourceFeatureDragStart, onJmixSourceFeatureModifyEnd, onJmixSourceFeatureModifyStart, onJmixSourceFeatureSelection
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.Source
getAttributionsCollapsible, getId, getProjection, setAttributionsCollapsible, setId, setProjection
Methods inherited from class io.jmix.mapsflowui.kit.component.model.MapObservableObject
addChild, addListener, clearRemovedChildren, clearRemovedChildrenInDepth, equals, fireChangeEvent, getChildren, getEventBus, getMetaProperties, getRemovedChildren, getSuperParent, getSyncId, hashCode, isAttachedToMap, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMetaProperty, setParent, unmarkDirtyInDepth
-
Constructor Details
-
NoOpVectorSource
public NoOpVectorSource()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getAttributions
Description copied from class:Source
- Specified by:
getAttributions
in interfaceSource.HasAttributions
- Overrides:
getAttributions
in classSource
- Returns:
- the attributions of the source or
null
if not set
-
setAttributions
Description copied from class:Source
- Specified by:
setAttributions
in interfaceSource.HasAttributions
- Overrides:
setAttributions
in classSource
- Parameters:
attributions
- info about copyrights and licences
-
getWrapX
Description copied from class:Source
- Specified by:
getWrapX
in interfaceSource.HasWrapX
- Overrides:
getWrapX
in classSource
- Returns:
- whether the source should be looped along the X coordinate or
null
if not set
-
setWrapX
Description copied from class:Source
- Specified by:
setWrapX
in interfaceSource.HasWrapX
- Overrides:
setWrapX
in classSource
- Parameters:
wrapX
- whether the source should be looped along the X coordinate
-
getOverlaps
- Specified by:
getOverlaps
in interfaceAbstractVectorSource.HasOverlaps
- Overrides:
getOverlaps
in classAbstractVectorSource
- Returns:
- overlaps value or
null
if not set
-
setOverlaps
Description copied from interface:AbstractVectorSource.HasOverlaps
Sets 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:
setOverlaps
in interfaceAbstractVectorSource.HasOverlaps
- Overrides:
setOverlaps
in classAbstractVectorSource
- Parameters:
overlaps
- overlaps option
-
getUseSpatialIndex
- Specified by:
getUseSpatialIndex
in interfaceAbstractVectorSource.HasUseSpatialIndex
- Overrides:
getUseSpatialIndex
in classAbstractVectorSource
- Returns:
- useSpatialIndex value or
null
if not set
-
setUseSpatialIndex
Description copied from interface:AbstractVectorSource.HasUseSpatialIndex
Sets whether to use spatial index. When features are removed and added frequently, and the total number of features is low, setting this tofalse
may improve performance. The default value istrue
.- Specified by:
setUseSpatialIndex
in interfaceAbstractVectorSource.HasUseSpatialIndex
- Overrides:
setUseSpatialIndex
in classAbstractVectorSource
- Parameters:
useSpatialIndex
- whether to use spatial index
-
getFeatureSelectEnabled
- Specified by:
getFeatureSelectEnabled
in interfaceSupportsFeatureSelect
- Overrides:
getFeatureSelectEnabled
in classAbstractEditableVectorSource
- Returns:
- whether select mode is enabled or not
-
setFeatureSelectEnabled
Description copied from interface:SupportsFeatureSelect
Enables / disables feature select mode.The default value is
false
.- Specified by:
setFeatureSelectEnabled
in interfaceSupportsFeatureSelect
- Overrides:
setFeatureSelectEnabled
in classAbstractEditableVectorSource
- Parameters:
enabled
- whether to enable select mode
-
getFeatureDragEnabled
- Specified by:
getFeatureDragEnabled
in interfaceSupportsFeatureDrag
- Overrides:
getFeatureDragEnabled
in classAbstractEditableVectorSource
- Returns:
- whether drag mode is enabled or not
-
setFeatureDragEnabled
Description copied from interface:SupportsFeatureDrag
Enables / disables feature drag mode.The default value is
false
.- Specified by:
setFeatureDragEnabled
in interfaceSupportsFeatureDrag
- Overrides:
setFeatureDragEnabled
in classAbstractEditableVectorSource
- Parameters:
enabled
- whether to enable drag mode
-
getFeatureModifyEnabled
- Specified by:
getFeatureModifyEnabled
in interfaceSupportsFeatureModify
- Overrides:
getFeatureModifyEnabled
in classAbstractEditableVectorSource
- Returns:
- whether modify mode is enabled or not
-
setFeatureModifyEnabled
Description copied from interface:SupportsFeatureModify
Enables / disables feature modify mode.The default value is
false
.- Specified by:
setFeatureModifyEnabled
in interfaceSupportsFeatureModify
- Overrides:
setFeatureModifyEnabled
in classAbstractEditableVectorSource
- Parameters:
enabled
- whether to enable modify mode
-