com.supermap.mapping
类 LayerHeatmap
- java.lang.Object
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerHeatmap
-
public class LayerHeatmap extends Layer
热力图图层
-
-
构造器概要
构造器 构造器和说明 LayerHeatmap()
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 AggregationFunctionTypegetAggregationFun()获取热力图聚合字段应用的聚合函数ColorsgetColorset()获取颜色集合doublegetFuzzyDegree()返回热力图中颜色渐变的模糊程度 范围[0-1]ColorTypegetGradientColorType()获取热力图中颜色渐变模式doublegetIntensity()返回高点密度颜色比重 取值范围[0-1]intgetKernelRadius()核半径ColorgetMaxColor()高密度点的颜色doublegetMaxValue()获取最大值ColorgetMinColor()低密度点的颜色doublegetMinValue()获取最小值java.lang.StringgetWeightField()返回权重字段voidsetAggregationFun(AggregationFunctionType type)设置热力图聚合字段应用的聚合函数voidsetColorset(Colors colors)设置颜色集合voidsetFuzzyDegree(double value)设置热力图中颜色渐变的模糊程度voidsetGradientColorType(ColorType type)设置热力图中颜色渐变模式voidsetIntensity(double value)设置高点密度颜色比重voidsetKernelRadius(int radius)核半径voidsetMaxColor(Color color)设置高密度点的颜色voidsetMaxValue(double vlaue)设置最大值voidsetMinColor(Color color)设置低密度点的颜色voidsetMinValue(double value)设置最小值voidsetWeightField(java.lang.String field)设置权重字段-
从类继承的方法 com.supermap.mapping.Layer
getAdditionalSetting, getByCaption, getCaption, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayFilter, getIsSwipe, getLabelDisplayArea, getLayerSettingVectorCache, getLayerWeight, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getParentGroup, getSelection, getSymbolScale, getTheme, GetTheme, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, getWebTileMaxLevel, hitTest, hitTestEx, isDeduplicateEnabled, isDisposed, isEditable, isFastDrawEnabled, isLabelDisplayAreaEnable, isSelectable, isSnapable, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCache, setAdditionalSetting, setCaption, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayFilter, setEditable, setFastDrawDataModefied, setFastDrawEnabled, setIsSwipe, setLabelDisplayArea, setLabelDisplayAreaEnable, setLayerWeight, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setOpaqueRate, setSelectable, setSnapable, setSymbolScalable, setSymbolScale, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setVisible, setWebTileMaxLevel, toXML
-
-
-
-
方法详细资料
-
getKernelRadius
public int getKernelRadius()
核半径- 返回:
- 返回用于计算密度的核半径 单位:屏幕坐标 范围[0-50]
-
setKernelRadius
public void setKernelRadius(int radius)
核半径- 参数:
radius- 设置用于计算密度的核半径 单位:屏幕坐标 范围[0-50]
-
getMaxColor
public Color getMaxColor()
高密度点的颜色- 返回:
- 返回高密度点的颜色
-
setMaxColor
public void setMaxColor(Color color)
设置高密度点的颜色- 参数:
color- 颜色值
-
getMinColor
public Color getMinColor()
低密度点的颜色- 返回:
- 返回低密度点的颜色
-
setMinColor
public void setMinColor(Color color)
设置低密度点的颜色- 参数:
color- 颜色值
-
setMaxValue
public void setMaxValue(double vlaue)
设置最大值- 参数:
vlaue- 最大值
-
getMaxValue
public double getMaxValue()
获取最大值- 返回:
- 最大值
-
setMinValue
public void setMinValue(double value)
设置最小值- 参数:
value- 最小值
-
getMinValue
public double getMinValue()
获取最小值- 返回:
- 最小值
-
setIntensity
public void setIntensity(double value)
设置高点密度颜色比重- 参数:
value- 热力图中高点密度颜色(MaxColor)和低点密度颜色(MinColor)确定渐变色带中高点 密度颜色所占的比重,该值越大,表示色带中高点密度颜色所占比重越大。取值范围[0-1]
-
getIntensity
public double getIntensity()
返回高点密度颜色比重 取值范围[0-1]- 返回:
- 返回热力图中高点密度颜色(MaxColor)和低点密度颜色(MinColor)确定渐变色带中高点 密度颜色所占的比重,该值越大,表示色带中高点密度颜色所占比重越大。
-
setFuzzyDegree
public void setFuzzyDegree(double value)
设置热力图中颜色渐变的模糊程度- 参数:
value- 热力图中颜色渐变的模糊程度,参数范围[0-1]
-
getFuzzyDegree
public double getFuzzyDegree()
返回热力图中颜色渐变的模糊程度 范围[0-1]- 返回:
- 返回热力图中颜色渐变的模糊程度
-
setWeightField
public void setWeightField(java.lang.String field)
设置权重字段- 参数:
field- 权重字段,热力图图层除了可以反映点要素的相对密度,还可以表示根据权重字段进行加权的点密度, 以此考虑点本身的权重对于密度的贡献。
-
getWeightField
public java.lang.String getWeightField()
返回权重字段- 返回:
- 返回权重字段,热力图图层除了可以反映点要素的相对密度,还可以表示根据权重字段进行加权的点密度, 以此考虑点本身的权重对于密度的贡献。
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
获取热力图聚合字段应用的聚合函数- 返回:
- 获取热力图聚合字段应用的聚合函数。聚合函数支持对聚合字段进行求和、求最值、平均值等。
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
设置热力图聚合字段应用的聚合函数- 参数:
type- 设置热力图聚合字段应用的聚合函数。聚合函数支持对聚合字段进行求和、求最值、平均值等。
-
setColorset
public void setColorset(Colors colors)
设置颜色集合- 参数:
colors- 颜色集合
-
getColorset
public Colors getColorset()
获取颜色集合- 返回:
- 颜色集合
-
setGradientColorType
public void setGradientColorType(ColorType type)
设置热力图中颜色渐变模式- 参数:
type- 设置热力图中颜色渐变模式,包含两种模式:HSB和RGB
-
getGradientColorType
public ColorType getGradientColorType()
获取热力图中颜色渐变模式- 返回:
- 获取热力图中颜色渐变模式,包含两种模式:HSB和RGB
-
-