Class NoOpClusterSource
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.AbstractClusterSource
io.jmix.mapsflowui.kit.component.model.source.NoOpClusterSource
- All Implemented Interfaces:
AbstractClusterSource.HasClusterSourceOptions
,AbstractClusterSource.HasDisableAtZoom
,AbstractClusterSource.HasDistance
,AbstractClusterSource.HasMinDistance
,AbstractClusterSource.HasPointStyle
,AbstractClusterSource.HasPointTextStyle
,AbstractClusterSource.HasShowSinglePointAsCluster
,AbstractClusterSource.HasVectorSource
,AbstractClusterSource.HasWeightProperty
,Source.HasAttributions
,Source.HasWrapX
,Serializable
public class NoOpClusterSource
extends AbstractClusterSource
implements AbstractClusterSource.HasClusterSourceOptions, 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.AbstractClusterSource
AbstractClusterSource.HasClusterSourceOptions, AbstractClusterSource.HasDisableAtZoom, AbstractClusterSource.HasDistance, AbstractClusterSource.HasMinDistance, AbstractClusterSource.HasPointStyle, AbstractClusterSource.HasPointTextStyle, AbstractClusterSource.HasShowSinglePointAsCluster, AbstractClusterSource.HasVectorSource, AbstractClusterSource.HasWeightProperty
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.AbstractClusterSource
disableAtZoom, distance, minDistance, pointStyles, pointTextStyle, showSinglePointAsCluster, vectorSource, weightProperty
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
addPointStyles
(Style... styles) Adds cluster point style.<T extends AbstractVectorSource>
TgetWrapX()
void
Removes all added cluster point styles.void
removePointStyles
(Style... styles) Removes cluster point styles.void
setAttributions
(List<String> attributions) void
setDisableAtZoom
(Double disableAtZoom) Sets zoom level from which clustering will be disabled.void
setDistance
(Integer distance) Sets the distance within which features will be clustered together.void
setMinDistance
(Integer minDistance) Sets the minimum distance in pixels between clusters that will be capped at the configured distance.void
setPointTextStyle
(Style pointTextStyle) Sets the text style of cluster marker.void
setShowSinglePointAsCluster
(Boolean showSinglePointAsCluster) Enables to show not clustered feature (single point, marker, etc.) as a cluster marker of 1 size.void
setVectorSource
(AbstractVectorSource vectorSource) Sets vector source.void
setWeightProperty
(String weightProperty) Sets weight property that is defined in a feature or in an entity.void
Methods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractClusterSource
createDefaultPointStyles, createDefaultPointTextStyle, getType
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
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, getSyncId, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Constructor Details
-
NoOpClusterSource
public NoOpClusterSource()
-
-
Method Details
-
getDistance
- Specified by:
getDistance
in interfaceAbstractClusterSource.HasDistance
- Overrides:
getDistance
in classAbstractClusterSource
- Returns:
- the distance or
null
if not set
-
setDistance
Description copied from interface:AbstractClusterSource.HasDistance
Sets the distance within which features will be clustered together. If not defined distance with 20 pixels will be used.For more details see: setDistance() docs
- Specified by:
setDistance
in interfaceAbstractClusterSource.HasDistance
- Overrides:
setDistance
in classAbstractClusterSource
- Parameters:
distance
- distance in pixels
-
getMinDistance
- Specified by:
getMinDistance
in interfaceAbstractClusterSource.HasMinDistance
- Overrides:
getMinDistance
in classAbstractClusterSource
- Returns:
- the minimum distance in pixels or
null
if not set
-
setMinDistance
Description copied from interface:AbstractClusterSource.HasMinDistance
Sets the minimum distance in pixels between clusters that will be capped at the configured distance. By default, no minimum distance is guaranteed. This config can be used to avoid overlapping icons. As a tradeoff, the cluster feature's position will no longer be the center of all its features.For more details see: setMinDistance() docs
- Specified by:
setMinDistance
in interfaceAbstractClusterSource.HasMinDistance
- Overrides:
setMinDistance
in classAbstractClusterSource
- Parameters:
minDistance
- minimum distance in pixels between clusters
-
getVectorSource
- Specified by:
getVectorSource
in interfaceAbstractClusterSource.HasVectorSource
- Overrides:
getVectorSource
in classAbstractClusterSource
- Type Parameters:
T
- vector source type- Returns:
- vector source or
null
if not set
-
setVectorSource
Description copied from interface:AbstractClusterSource.HasVectorSource
Sets vector source.- Specified by:
setVectorSource
in interfaceAbstractClusterSource.HasVectorSource
- Overrides:
setVectorSource
in classAbstractClusterSource
- Parameters:
vectorSource
- vector source to set
-
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
-
getPointTextStyle
- Specified by:
getPointTextStyle
in interfaceAbstractClusterSource.HasPointTextStyle
- Overrides:
getPointTextStyle
in classAbstractClusterSource
- Returns:
- the text style of cluster marker
-
setPointTextStyle
Description copied from interface:AbstractClusterSource.HasPointTextStyle
Sets the text style of cluster marker. For instance, default text style is defined by the following:clusterSource.setPointTextStyle( new Style() .withText(new TextStyle() .withFont("12px sans-serif") .withOffsetY(1) .withFill(new Fill("#fff"))));
- Specified by:
setPointTextStyle
in interfaceAbstractClusterSource.HasPointTextStyle
- Overrides:
setPointTextStyle
in classAbstractClusterSource
- Parameters:
pointTextStyle
- text style to set
-
getPointStyles
- Specified by:
getPointStyles
in interfaceAbstractClusterSource.HasPointStyle
- Overrides:
getPointStyles
in classAbstractClusterSource
- Returns:
- list of added cluster point styles or empty list if no styles added
-
addPointStyles
Description copied from class:AbstractClusterSource
Adds cluster point style. The Cluster generates points that includes features in this cluster. Styles will be applied only for generated points, other features will be styled according to their rules.- Specified by:
addPointStyles
in interfaceAbstractClusterSource.HasPointStyle
- Overrides:
addPointStyles
in classAbstractClusterSource
- Parameters:
styles
- cluster point styles to add
-
removePointStyles
Description copied from class:AbstractClusterSource
Removes cluster point styles.- Specified by:
removePointStyles
in interfaceAbstractClusterSource.HasPointStyle
- Overrides:
removePointStyles
in classAbstractClusterSource
- Parameters:
styles
- styles to remove
-
removeAllPointStyles
public void removeAllPointStyles()Description copied from class:AbstractClusterSource
Removes all added cluster point styles.- Specified by:
removeAllPointStyles
in interfaceAbstractClusterSource.HasPointStyle
- Overrides:
removeAllPointStyles
in classAbstractClusterSource
-
getWeightProperty
- Specified by:
getWeightProperty
in interfaceAbstractClusterSource.HasWeightProperty
- Overrides:
getWeightProperty
in classAbstractClusterSource
- Returns:
- weight property or
null
if not set
-
setWeightProperty
Description copied from interface:AbstractClusterSource.HasWeightProperty
Sets weight property that is defined in a feature or in an entity. This property should contain value that will be used when calculating the summed up value of the cluster (by default, the number of points is used).- Specified by:
setWeightProperty
in interfaceAbstractClusterSource.HasWeightProperty
- Overrides:
setWeightProperty
in classAbstractClusterSource
- Parameters:
weightProperty
- property in a feature or in an entity
-
getShowSinglePointAsCluster
- Specified by:
getShowSinglePointAsCluster
in interfaceAbstractClusterSource.HasShowSinglePointAsCluster
- Overrides:
getShowSinglePointAsCluster
in classAbstractClusterSource
- Returns:
true
if feature is shown as a cluster marker of 1 size ornull
if not set
-
setShowSinglePointAsCluster
Description copied from interface:AbstractClusterSource.HasShowSinglePointAsCluster
Enables to show not clustered feature (single point, marker, etc.) as a cluster marker of 1 size. Default value isfalse
.- Specified by:
setShowSinglePointAsCluster
in interfaceAbstractClusterSource.HasShowSinglePointAsCluster
- Overrides:
setShowSinglePointAsCluster
in classAbstractClusterSource
- Parameters:
showSinglePointAsCluster
- whether to show feature as a cluster marker of 1 size
-
getDisableAtZoom
- Specified by:
getDisableAtZoom
in interfaceAbstractClusterSource.HasDisableAtZoom
- Overrides:
getDisableAtZoom
in classAbstractClusterSource
- Returns:
- zoom level or
null
if not set
-
setDisableAtZoom
Description copied from interface:AbstractClusterSource.HasDisableAtZoom
Sets zoom level from which clustering will be disabled.- Specified by:
setDisableAtZoom
in interfaceAbstractClusterSource.HasDisableAtZoom
- Overrides:
setDisableAtZoom
in classAbstractClusterSource
- Parameters:
disableAtZoom
- zoom level from which clustering will be disabled
-