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.HasWeightPropertyNested 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.AbstractClusterSource
disableAtZoom, distance, minDistance, pointStyles, pointTextStyle, showSinglePointAsCluster, vectorSource, weightPropertyFields 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 TypeMethodDescriptionvoidaddPointStyles(Style... styles) Adds cluster point style.<T extends AbstractVectorSource>
TgetWrapX()voidRemoves all added cluster point styles.voidremovePointStyles(Style... styles) Removes cluster point styles.voidsetAttributions(List<String> attributions) voidsetDisableAtZoom(Double disableAtZoom) Sets zoom level from which clustering will be disabled.voidsetDistance(Integer distance) Sets the distance within which features will be clustered together.voidsetMinDistance(Integer minDistance) Sets the minimum distance in pixels between clusters that will be capped at the configured distance.voidsetPointTextStyle(Style pointTextStyle) Sets the text style of cluster marker.voidsetShowSinglePointAsCluster(Boolean showSinglePointAsCluster) Enables to show not clustered feature (single point, marker, etc.) as a cluster marker of 1 size.voidsetVectorSource(AbstractVectorSource vectorSource) Sets vector source.voidsetWeightProperty(String weightProperty) Sets weight property that is defined in a feature or in an entity.voidMethods inherited from class io.jmix.mapsflowui.kit.component.model.source.AbstractClusterSource
createDefaultPointStyles, createDefaultPointTextStyle, getTypeMethods 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
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
-
NoOpClusterSource
public NoOpClusterSource()
-
-
Method Details
-
getDistance
- Specified by:
getDistancein interfaceAbstractClusterSource.HasDistance- Overrides:
getDistancein classAbstractClusterSource- Returns:
- the distance or
nullif not set
-
setDistance
Description copied from interface:AbstractClusterSource.HasDistanceSets 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:
setDistancein interfaceAbstractClusterSource.HasDistance- Overrides:
setDistancein classAbstractClusterSource- Parameters:
distance- distance in pixels
-
getMinDistance
- Specified by:
getMinDistancein interfaceAbstractClusterSource.HasMinDistance- Overrides:
getMinDistancein classAbstractClusterSource- Returns:
- the minimum distance in pixels or
nullif not set
-
setMinDistance
Description copied from interface:AbstractClusterSource.HasMinDistanceSets 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:
setMinDistancein interfaceAbstractClusterSource.HasMinDistance- Overrides:
setMinDistancein classAbstractClusterSource- Parameters:
minDistance- minimum distance in pixels between clusters
-
getVectorSource
- Specified by:
getVectorSourcein interfaceAbstractClusterSource.HasVectorSource- Overrides:
getVectorSourcein classAbstractClusterSource- Type Parameters:
T- vector source type- Returns:
- vector source or
nullif not set
-
setVectorSource
Description copied from interface:AbstractClusterSource.HasVectorSourceSets vector source.- Specified by:
setVectorSourcein interfaceAbstractClusterSource.HasVectorSource- Overrides:
setVectorSourcein classAbstractClusterSource- Parameters:
vectorSource- vector source to set
-
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
-
getPointTextStyle
- Specified by:
getPointTextStylein interfaceAbstractClusterSource.HasPointTextStyle- Overrides:
getPointTextStylein classAbstractClusterSource- Returns:
- the text style of cluster marker
-
setPointTextStyle
Description copied from interface:AbstractClusterSource.HasPointTextStyleSets 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:
setPointTextStylein interfaceAbstractClusterSource.HasPointTextStyle- Overrides:
setPointTextStylein classAbstractClusterSource- Parameters:
pointTextStyle- text style to set
-
getPointStyles
- Specified by:
getPointStylesin interfaceAbstractClusterSource.HasPointStyle- Overrides:
getPointStylesin classAbstractClusterSource- Returns:
- list of added cluster point styles or empty list if no styles added
-
addPointStyles
Description copied from class:AbstractClusterSourceAdds 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:
addPointStylesin interfaceAbstractClusterSource.HasPointStyle- Overrides:
addPointStylesin classAbstractClusterSource- Parameters:
styles- cluster point styles to add
-
removePointStyles
Description copied from class:AbstractClusterSourceRemoves cluster point styles.- Specified by:
removePointStylesin interfaceAbstractClusterSource.HasPointStyle- Overrides:
removePointStylesin classAbstractClusterSource- Parameters:
styles- styles to remove
-
removeAllPointStyles
public void removeAllPointStyles()Description copied from class:AbstractClusterSourceRemoves all added cluster point styles.- Specified by:
removeAllPointStylesin interfaceAbstractClusterSource.HasPointStyle- Overrides:
removeAllPointStylesin classAbstractClusterSource
-
getWeightProperty
- Specified by:
getWeightPropertyin interfaceAbstractClusterSource.HasWeightProperty- Overrides:
getWeightPropertyin classAbstractClusterSource- Returns:
- weight property or
nullif not set
-
setWeightProperty
Description copied from interface:AbstractClusterSource.HasWeightPropertySets 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:
setWeightPropertyin interfaceAbstractClusterSource.HasWeightProperty- Overrides:
setWeightPropertyin classAbstractClusterSource- Parameters:
weightProperty- property in a feature or in an entity
-
getShowSinglePointAsCluster
- Specified by:
getShowSinglePointAsClusterin interfaceAbstractClusterSource.HasShowSinglePointAsCluster- Overrides:
getShowSinglePointAsClusterin classAbstractClusterSource- Returns:
trueif feature is shown as a cluster marker of 1 size ornullif not set
-
setShowSinglePointAsCluster
Description copied from interface:AbstractClusterSource.HasShowSinglePointAsClusterEnables to show not clustered feature (single point, marker, etc.) as a cluster marker of 1 size. Default value isfalse.- Specified by:
setShowSinglePointAsClusterin interfaceAbstractClusterSource.HasShowSinglePointAsCluster- Overrides:
setShowSinglePointAsClusterin classAbstractClusterSource- Parameters:
showSinglePointAsCluster- whether to show feature as a cluster marker of 1 size
-
getDisableAtZoom
- Specified by:
getDisableAtZoomin interfaceAbstractClusterSource.HasDisableAtZoom- Overrides:
getDisableAtZoomin classAbstractClusterSource- Returns:
- zoom level or
nullif not set
-
setDisableAtZoom
Description copied from interface:AbstractClusterSource.HasDisableAtZoomSets zoom level from which clustering will be disabled.- Specified by:
setDisableAtZoomin interfaceAbstractClusterSource.HasDisableAtZoom- Overrides:
setDisableAtZoomin classAbstractClusterSource- Parameters:
disableAtZoom- zoom level from which clustering will be disabled
-