Class AbstractClusterSource
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusterSource
,NoOpClusterSource
Base cluster for cluster sources. It contains all attributes for cluster configuration.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface to be implemented by sources that should provide all attributes fromAbstractClusterSource
.static interface
Interface to be implemented by sources that should providedisableAtZoom
management.static interface
Interface to be implemented by sources that should provide cluster distance management.static interface
Interface to be implemented by sources that should provide cluster minimum distance management.static interface
Interface to be implemented by sources that should provide point styles management.static interface
Interface to be implemented by sources that should providepointTextStyle
management.static interface
Interface to be implemented by sources that should provideshowSinglePointAsCluster
option management.static interface
Interface to be implemented by sources that should contain vector source.static interface
Interface to be implemented by sources that should provide weight property management.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
Modifier and TypeFieldDescriptionprotected Double
protected Integer
protected Integer
protected Style
protected Boolean
protected AbstractVectorSource
protected String
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 TypeMethodDescriptionprotected void
addPointStyles
(Style... styles) Adds cluster point style.protected Style
protected Double
protected Integer
protected Integer
protected Style
protected Boolean
protected String
getType()
protected <T extends AbstractVectorSource>
Tprotected String
protected void
Removes all added cluster point styles.protected void
removePointStyles
(Style... styles) Removes cluster point styles.protected void
setDisableAtZoom
(Double disableAtZoom) protected void
setDistance
(Integer distance) protected void
setMinDistance
(Integer minDistance) protected void
setPointTextStyle
(Style pointTextStyle) protected void
setShowSinglePointAsCluster
(Boolean showSinglePointAsCluster) protected void
setVectorSource
(AbstractVectorSource vectorSource) protected void
setWeightProperty
(String weightProperty) 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, hashCode, isDirty, isDirtyInDepth, markAsDirty, markAsDirtyInDepth, removeChild, setMapObjectChangeListener, setMetaProperty, setParent, unmarkDirtyInDepth
-
Field Details
-
distance
-
minDistance
-
vectorSource
-
pointStyles
-
pointTextStyle
-
showSinglePointAsCluster
-
disableAtZoom
-
weightProperty
-
-
Constructor Details
-
AbstractClusterSource
public AbstractClusterSource()
-
-
Method Details
-
getType
- Specified by:
getType
in classMapObservableObject
-
getDistance
-
setDistance
-
getMinDistance
-
setMinDistance
-
getVectorSource
-
setVectorSource
-
getPointStyles
- Returns:
- list of added cluster point styles or empty list if no styles added
-
addPointStyles
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.- Parameters:
styles
- cluster point styles to add
-
removePointStyles
Removes cluster point styles.- Parameters:
styles
- styles to remove
-
removeAllPointStyles
protected void removeAllPointStyles()Removes all added cluster point styles. -
getPointTextStyle
-
setPointTextStyle
-
getWeightProperty
-
setWeightProperty
-
getShowSinglePointAsCluster
-
setShowSinglePointAsCluster
-
getDisableAtZoom
-
setDisableAtZoom
-
createDefaultPointStyles
-
createDefaultPointTextStyle
-