com.supermap.mapping
Class LayerHeatmap
- java.lang.Object
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerHeatmap
-
public class LayerHeatmap extends Layer
The heat map layer
-
-
Constructor Summary
Constructors Constructor and Description LayerHeatmap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AggregationFunctionTypegetAggregationFun()Gets the aggregation function applied to the aggregation fields of a heat map.ColorsgetColorset()Gets the color collectiondoublegetFuzzyDegree()Returns the fuzzy extent of the color gradient in a heat map.ColorTypegetGradientColorType()Gets the gradient mode in a heat mapdoublegetIntensity()Returns the color ratio (ranging from 0 to 1) of high-density pointsintgetKernelRadius()The kernel radiusColorgetMaxColor()The color of highly dense pointsdoublegetMaxValue()Gets the maximum valueColorgetMinColor()The color of low dense pointsdoublegetMinValue()Gets the minimum valuejava.lang.StringgetWeightField()Returns the weighted fieldvoidsetAggregationFun(AggregationFunctionType type)Sets the aggregation function applied to the aggregation fields of a heat map.voidsetColorset(Colors colors)Sets the color collectionvoidsetFuzzyDegree(double value)Sets the fuzzy extent of the color gradient in a heat mapvoidsetGradientColorType(ColorType type)Sets the gradient mode in a heat mapvoidsetIntensity(double value)Sets the color ratio of high-density pointsvoidsetKernelRadius(int radius)The kernel radiusvoidsetMaxColor(Color color)Sets the color of highly dense pointsvoidsetMaxValue(double vlaue)Sets the maximum valuevoidsetMinColor(Color color)Sets the color of low dense pointsvoidsetMinValue(double value)Sets the minimum valuevoidsetWeightField(java.lang.String field)Sets the weighted field-
Methods inherited from class com.supermap.mapping.Layer
getAdditionalSetting, getByCaption, getCaption, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayFilter, getIsSwipe, getLayerSettingVectorCache, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getParentGroup, getSelection, getSymbolScale, getTheme, GetTheme, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, hitTest, hitTestEx, isDeduplicateEnabled, isDisposed, isEditable, isFastDrawEnabled, isSelectable, isSnapable, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCache, setAdditionalSetting, setCaption, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayFilter, setEditable, setFastDrawDataModefied, setFastDrawEnabled, setIsSwipe, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setOpaqueRate, setSelectable, setSnapable, setSymbolScalable, setSymbolScale, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setVisible, toXML
-
-
-
-
Method Detail
-
getKernelRadius
public int getKernelRadius()
The kernel radius- Returns:
- Returns the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
-
setKernelRadius
public void setKernelRadius(int radius)
The kernel radius- Parameters:
radius- Sets the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
-
getMaxColor
public Color getMaxColor()
The color of highly dense points- Returns:
- Return the color of highly dense points
-
setMaxColor
public void setMaxColor(Color color)
Sets the color of highly dense points- Parameters:
color- The color value.
-
getMinColor
public Color getMinColor()
The color of low dense points- Returns:
- Return the color of low dense points
-
setMinColor
public void setMinColor(Color color)
Sets the color of low dense points- Parameters:
color- The color value.
-
setMaxValue
public void setMaxValue(double vlaue)
Sets the maximum value- Parameters:
vlaue- the maximum value
-
getMaxValue
public double getMaxValue()
Gets the maximum value- Returns:
- the maximum value
-
setMinValue
public void setMinValue(double value)
Sets the minimum value- Parameters:
value- The maximum value
-
getMinValue
public double getMinValue()
Gets the minimum value- Returns:
- the minimum value
-
setIntensity
public void setIntensity(double value)
Sets the color ratio of high-density points- Parameters:
value- the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio. The value ranges from 0 to 1.
-
getIntensity
public double getIntensity()
Returns the color ratio (ranging from 0 to 1) of high-density points- Returns:
- returns the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio.
-
setFuzzyDegree
public void setFuzzyDegree(double value)
Sets the fuzzy extent of the color gradient in a heat map- Parameters:
value- the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1
-
getFuzzyDegree
public double getFuzzyDegree()
Returns the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1- Returns:
- Returns the fuzzy extent of the color gradient in a heat map
-
setWeightField
public void setWeightField(java.lang.String field)
Sets the weighted field- Parameters:
field- a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
-
getWeightField
public java.lang.String getWeightField()
Returns the weighted field- Returns:
- return a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a heat map.- Returns:
- Gets the aggregation function applied to the aggregation fields of a heat map.
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a heat map.- Parameters:
type- Sets the aggregation function applied to the aggregation fields of a heat map.
-
setColorset
public void setColorset(Colors colors)
Sets the color collection- Parameters:
colors- color collection.
-
getColorset
public Colors getColorset()
Gets the color collection- Returns:
- the color collection
-
setGradientColorType
public void setGradientColorType(ColorType type)
Sets the gradient mode in a heat map- Parameters:
type- Sets the color gradient mode in a heat map including: HSB and RGB
-
getGradientColorType
public ColorType getGradientColorType()
Gets the gradient mode in a heat map- Returns:
- Gets the color gradient mode in a heat map including: HSB and RGB
-
-