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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to be implemented by sources that should provide all attributes fromAbstractClusterSource.static interfaceInterface to be implemented by sources that should providedisableAtZoommanagement.static interfaceInterface to be implemented by sources that should provide cluster distance management.static interfaceInterface to be implemented by sources that should provide cluster minimum distance management.static interfaceInterface to be implemented by sources that should provide point styles management.static interfaceInterface to be implemented by sources that should providepointTextStylemanagement.static interfaceInterface to be implemented by sources that should provideshowSinglePointAsClusteroption management.static interfaceInterface to be implemented by sources that should contain vector source.static interfaceInterface 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.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
FieldsModifier and TypeFieldDescriptionprotected Doubleprotected Integerprotected Integerprotected Styleprotected Booleanprotected AbstractVectorSourceprotected StringFields 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 voidaddPointStyles(Style... styles) Adds cluster point style.protected Styleprotected Doubleprotected Integerprotected Integerprotected Styleprotected Booleanprotected StringgetType()protected <T extends AbstractVectorSource>
Tprotected Stringprotected voidRemoves all added cluster point styles.protected voidremovePointStyles(Style... styles) Removes cluster point styles.protected voidsetDisableAtZoom(Double disableAtZoom) protected voidsetDistance(Integer distance) protected voidsetMinDistance(Integer minDistance) protected voidsetPointTextStyle(Style pointTextStyle) protected voidsetShowSinglePointAsCluster(Boolean showSinglePointAsCluster) protected voidsetVectorSource(AbstractVectorSource vectorSource) protected voidsetWeightProperty(String weightProperty) 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, getId, getProjection, getWrapX, setAttributions, setAttributionsCollapsible, setId, setProjection, setWrapXMethods 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:
getTypein 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
-