com.supermap.mapping
类 LayerGridAggregation
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerGridAggregation
-
public class LayerGridAggregation extends Layer
网格聚合图,该类继承自Layer类。
-
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 AggregationFunctionType
getAggregationFun()
获取聚合函数Colors
getColorset()
返回用于显示当前网格聚合图的颜色集合。ColorType
getGradientColorType()
返回网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。LayerGridAggregationType
getGridAggregationType()
返回网格聚合图的格网类型。int
getGridHeight()
返回设置矩形格网的高度。TextStyle
getGridLabelStyle()
返回网格单元内统计值标签的风格。GeoStyle
getGridLineStyle()
返回网格单元矩形边框线的风格。int
getGridwidth()
返回六边形格网的边长,或者矩形格网的宽度。boolean
getIsShowGridLabel()
返回是否显示网格单元标签。Color
getMaxColor()
返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。MemRecordset
getMemRecordset()
返回用于制作网格聚合图的内存点记录集。Color
getMinColor()
返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。GeoStyle
getOriginalPointStyle()
对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法返回点数据显示的风格。double
getUserdefMaxScale()
获取用户自定义最大显示比例尺int
getValueDigit()
获取标签显示小数位数String
getWeightField()
返回权重字段。void
setAggregationFun(AggregationFunctionType type)
设置聚合函数void
setColorset(Colors colors)
设置用于显示当前网格聚合图的颜色集合。void
setGradientColorType(ColorType type)
设置网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。void
setGridAggregationType(LayerGridAggregationType type)
设置网格聚合图的格网类型,可以为矩形网格或者六边形网格。void
setGridHeight(int height)
设置矩形格网的高度。void
setGridLabelStyle(TextStyle style)
设置网格单元内统计值标签的风格。void
setGridLineStyle(GeoStyle style)
设置网格单元矩形边框线的风格。void
setGridWidth(int width)
设置六边形格网的边长,或者矩形格网的宽度。void
setIsShowGridLabel(boolean isShow)
设置是否显示网格单元标签。void
setMaxColor(Color color)
设置网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。void
setMinColor(Color color)
设置网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。void
setOriginalPointStyle(GeoStyle style)
对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法设置点数据显示的风格。void
setUserdefMaxScale(double scale)
设置用户自定义最大显示比例尺void
setValueDigit(int digit)
设置标签显示小数位数void
setWeightField(String field)
设置权重字段。void
updateData()
根据数据变化自动更新当前网格聚合图。-
从类继承的方法 com.supermap.mapping.Layer
addCaptionChangedListener, addEditableChangedListener, addElementDrawingListener, addGridFunction, addSelectableChangedListener, addSnapableChangedListener, addVisibleChangedListener, checkLayerSubType, clearThemeElementPositions, findLayer, fromXML, getAdditionalSetting, getBlendMode, getBounds, getCaption, getClipRegion, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayControledLayer, getDisplayFilter, getDisplayFilterStr, getExtensionPlugin, getExtensionUserInfo, getExternalInfo, getFieldValuesDisplayFilter, getFillMarkerOrder, getGridFunctionArgs, getGridFunctionType, getGridFunctonCount, getLayerWeight, getMap, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getOpaqueRate, getOverlapGeometryPixel, getOverlapGeometryThreshold, getParentGroup, getParentSnapshot, getRepresentationField, getSelection, getSource, getSubLayerType, getSubType, getSymbolScale, getTheme, getThemeElementPosition, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, getValueExpressions, hitTest, hitTest, hitTest, hitTestGeoCompound, isAntialias, isClipRegionEnabled, isCompleteLineSymbolDisplayed, isCrossroadOptimized, isDeduplicateEnabled, isDiposed, isDisposed, isEditable, isFullLabelEnabled, isInteroperable, isLayerCacheEnabled, isModified, isOverlapDisplayed, isOverlapGeometryEnabled, isRepresentationEnabled, isSelectable, isSnapable, isSuperAndSubScript, isSwipeEnabled, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCaptionChangedListener, removeEditableChangedListener, removeElementDrawingListener, removeGridFunction, removeSelectableChangedListener, removeSnapableChangedListener, removeThemeElementPosition, removeVisibleChangedListener, setAdditionalSetting, setAntialias, setBlendMode, setCaption, setClipRegion, setClipRegionEnabled, setCompleteLineSymbolDisplayed, setCrossroadOptimized, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayControledLayer, setDisplayFilter, setDisplayFilterStr, setEditable, setExtensionUserInfo, setExternalInfo, setFillMarkerOrder, setFullLabelEnabled, setInteroperable, SetLayerCacheEnabled, SetLayerCacheRefresh, setLayerWeight, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setModified, setOpaqueRate, setOverlapDisplayed, setOverlapGeometryEnabled, setOverlapGeometryPixel, setOverlapGeometryThreshold, setRepresentationEnabled, setRepresentationField, setSelectable, setSelection, setSnapable, setSource, setSource, setSuperAndSubScript, setSwipeEnabled, setSymbolScalable, setSymbolScale, setThemeElementPosition, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setValueExpressions, setVisible, themeSymbolsToGeometries, themeSymbolsToGeometrys, themeToDatasetVector, toXML
-
-
-
-
方法详细资料
-
getMaxColor
public Color getMaxColor()
返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。- 返回:
- 返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
-
setMaxColor
public void setMaxColor(Color color)
设置网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。- 参数:
color
- 网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
-
getMinColor
public Color getMinColor()
返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。- 返回:
- 返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
-
setMinColor
public void setMinColor(Color color)
设置网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。- 参数:
color
- 网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
-
setWeightField
public void setWeightField(String field)
设置权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。- 参数:
field
- 权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。
-
getWeightField
public String getWeightField()
返回权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。- 返回:
- 返回权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。
-
setGridLineStyle
public void setGridLineStyle(GeoStyle style)
设置网格单元矩形边框线的风格。- 参数:
style
- 网格单元矩形边框线的风格。
-
getGridLineStyle
public GeoStyle getGridLineStyle()
返回网格单元矩形边框线的风格。- 返回:
- 返回网格单元矩形边框线的风格。
-
setGridLabelStyle
public void setGridLabelStyle(TextStyle style)
设置网格单元内统计值标签的风格。- 参数:
style
- 网格单元内统计值标签的风格。
-
getGridLabelStyle
public TextStyle getGridLabelStyle()
返回网格单元内统计值标签的风格。- 返回:
- 返回网格单元内统计值标签的风格。
-
setIsShowGridLabel
public void setIsShowGridLabel(boolean isShow)
设置是否显示网格单元标签。- 参数:
isShow
- 一个布尔值,指示是否显示网格单元标签,true表示显示;false表示不显示。
-
getIsShowGridLabel
public boolean getIsShowGridLabel()
返回是否显示网格单元标签。- 返回:
- 一个布尔值,指示是否显示网格单元标签,true表示显示;false表示不显示。
-
setOriginalPointStyle
public void setOriginalPointStyle(GeoStyle style)
对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法设置点数据显示的风格。- 参数:
style
- 点数据显示的风格。
-
getOriginalPointStyle
public GeoStyle getOriginalPointStyle()
对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法返回点数据显示的风格。- 返回:
- 返回点数据显示的风格。
-
setGridAggregationType
public void setGridAggregationType(LayerGridAggregationType type)
设置网格聚合图的格网类型,可以为矩形网格或者六边形网格。- 参数:
type
- 网格聚合图的格网类型。
-
getGridAggregationType
public LayerGridAggregationType getGridAggregationType()
返回网格聚合图的格网类型。- 返回:
- 返回网格聚合图的格网类型。
-
setGridWidth
public void setGridWidth(int width)
设置六边形格网的边长,或者矩形格网的宽度。单位为:屏幕坐标。- 参数:
width
- 六边形格网的边长,或者矩形格网的宽度。单位为:屏幕坐标。
-
getGridwidth
public int getGridwidth()
返回六边形格网的边长,或者矩形格网的宽度。单位为:屏幕坐标。- 返回:
- 返回六边形格网的边长,或者矩形格网的宽度。单位为:屏幕坐标。
-
setGridHeight
public void setGridHeight(int height)
设置矩形格网的高度。单位为:屏幕坐标。- 参数:
height
- 矩形格网的高度。单位为:屏幕坐标。
-
getGridHeight
public int getGridHeight()
返回设置矩形格网的高度。单位为:屏幕坐标。- 返回:
- 返回设置矩形格网的高度。单位为:屏幕坐标。
-
getMemRecordset
public MemRecordset getMemRecordset()
返回用于制作网格聚合图的内存点记录集。- 返回:
- 返回用于制作网格聚合图的内存点记录集。
-
updateData
public void updateData()
根据数据变化自动更新当前网格聚合图。
-
setUserdefMaxScale
public void setUserdefMaxScale(double scale)
设置用户自定义最大显示比例尺- 参数:
scale
- 最大显示比例尺- 抛出:
IllegalStateException
- 当前对象已被释放
-
getUserdefMaxScale
public double getUserdefMaxScale()
获取用户自定义最大显示比例尺- 返回:
- 最大显示比例尺
- 抛出:
IllegalStateException
- 当前对象已被释放
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
获取聚合函数- 返回:
- 聚合函数类型
AggregationFunctionType
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
设置聚合函数- 参数:
type
- 聚合函数类型AggregationFunctionType
- 抛出:
IllegalStateException
- 当前对象已被释放
-
setColorset
public void setColorset(Colors colors)
设置用于显示当前网格聚合图的颜色集合。- 参数:
colors
- 用于显示当前网格聚合图的颜色集合。
-
getColorset
public Colors getColorset()
返回用于显示当前网格聚合图的颜色集合。- 返回:
- 返回用于显示当前网格聚合图的颜色集合。
-
setGradientColorType
public void setGradientColorType(ColorType type)
设置网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。- 参数:
type
- 网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。
-
getGradientColorType
public ColorType getGradientColorType()
返回网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。- 返回:
- 返回网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。
-
setValueDigit
public void setValueDigit(int digit)
设置标签显示小数位数- 参数:
digit
- 小数的位数- 抛出:
IllegalStateException
- 当前对象已被释放
-
getValueDigit
public int getValueDigit()
获取标签显示小数位数- 返回:
- 小数位数
- 抛出:
IllegalStateException
- 当前对象已被释放
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.