com.supermap.mapping
类 LayerGridAggregation

java.lang.Object
  继承者 com.supermap.mapping.Layer
      继承者 com.supermap.mapping.LayerGridAggregation

public class LayerGridAggregation
extends Layer

网格聚合图,该类继承自Layer类。


方法摘要
 Colors getColorset()
          返回用于显示当前网格聚合图的颜色集合。
 ColorType getGradientColorType()
          返回网格聚合图的颜色渐变模式,包含两种模式:HSB和RGB。
 LayerGridAggregationType getGridAggregationType()
          返回网格聚合图的格网类型。
 int getGridHeight()
          返回设置矩形格网的高度。
 TextStyle getGridLabelStyle()
          返回网格单元内统计值标签的风格。
 GeoStyle getGridLineStyle()
          返回网格单元矩形边框线的风格。
 int getGridwidth()
          返回六边形格网的边长,或者矩形格网的宽度。
 boolean getIsShowGridLabel()
          返回是否显示网格单元标签。
 java.awt.Color getMaxColor()
          返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
 MemRecordset getMemRecordset()
          返回用于制作网格聚合图的内存点记录集。
 java.awt.Color getMinColor()
          返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
 GeoStyle getOriginalPointStyle()
          对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法返回点数据显示的风格。
 java.lang.String getWeightField()
          返回权重字段。
 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(java.awt.Color color)
          设置网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
 void setMinColor(java.awt.Color color)
          设置网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。
 void setOriginalPointStyle(GeoStyle style)
          对网格聚合图进行放大浏览,当比例尺较大时,将不显示聚合的网格效果,而显示原始点数据内容,此方法设置点数据显示的风格。
 void setWeightField(java.lang.String field)
          设置权重字段。
 void updateData()
          根据数据变化自动更新当前网格聚合图。
 
从类 com.supermap.mapping.Layer 继承的方法
addElementDrawingListener, addGridFunction, clearThemeElementPositions, findLayer, fromXML, getAdditionalSetting, getBounds, getCaption, getClipRegion, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayControledLayer, getDisplayFilter, getEndTimeField, getExternalInfo, getFieldValuesDisplayFilter, getFillMarkerOrder, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getOpaqueRate, getOverlapGeometryPixel, getOverlapGeometryThreshold, getParentGroup, getParentSnapshot, getRepresentationField, getSelection, getStartTimeField, getSymbolScale, getTheme, getThemeElementPosition, getTimeFilterEnding, getTimeFilterStarting, getTimeStepInterval, getValueExpressions, hitTest, hitTest, hitTest, hitTestGeoCompound, isAntialias, isClipRegionEnabled, isCompleteLineSymbolDisplayed, isCrossroadOptimized, isDeduplicateEnabled, isDisposed, isEditable, isOverlapDisplayed, isOverlapGeometryEnabled, isRepresentationEnabled, isSelectable, isSnapable, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeElementDrawingListener, removeThemeElementPosition, setAdditionalSetting, setAntialias, setCaption, setClipRegion, setClipRegionEnabled, setCompleteLineSymbolDisplayed, setCrossroadOptimized, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayControledLayer, setDisplayFilter, setEditable, setEndTimeField, setExternalInfo, setFillMarkerOrder, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setOpaqueRate, setOverlapDisplayed, setOverlapGeometryEnabled, setOverlapGeometryPixel, setOverlapGeometryThreshold, setRepresentationEnabled, setRepresentationField, setSelectable, setSelection, setSnapable, setStartTimeField, setSymbolScalable, setSymbolScale, setThemeElementPosition, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStepInterval, setValueExpressions, setVisible, themeSymbolsToGeometries, themeToDatasetVector, toXML
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getMaxColor

public java.awt.Color getMaxColor()
返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

返回:
返回网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

setMaxColor

public void setMaxColor(java.awt.Color color)
设置网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

参数:
color - 网格单元统计值最大值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

getMinColor

public java.awt.Color getMinColor()
返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

返回:
返回网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

setMinColor

public void setMinColor(java.awt.Color color)
设置网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

参数:
color - 网格单元统计值最小值对应的颜色,网格聚合图将通过MaxColor和MinColor确定渐变的颜色方案,然后基于网格单元统计值大小排序,对网格单元进行颜色渲染。

setWeightField

public void setWeightField(java.lang.String field)
设置权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。

参数:
field - 权重字段。网格聚合图每个网格单元的统计值默认为落在该单元格内的点对象数目,此外,还可以引入点的权重信息,考虑网格单元内点的加权值作为网格的统计值。

getWeightField

public java.lang.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表示不显示。

getMemRecordset

public MemRecordset getMemRecordset()
返回用于制作网格聚合图的内存点记录集。

返回:
返回用于制作网格聚合图的内存点记录集。

updateData

public void updateData()
根据数据变化自动更新当前网格聚合图。


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()
返回设置矩形格网的高度。单位为:屏幕坐标。

返回:
返回设置矩形格网的高度。单位为:屏幕坐标。

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。