com.supermap.mapping
Class LayerGridAggregation
- java.lang.Object
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerGridAggregation
-
public class LayerGridAggregation extends Layer
Grid map's layers
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AggregationFunctionType
getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a grid map.Colors
getColorset()
Gets the color collectionColorType
getGradientColorType()
Gets a color gradient in a grid mapLayerGridAggregationType
getGridAggregationType()
Gets the grid types of a grid aggregation map.int
getGridHeight()
Gets the height of each border of a rectangle gridTextStyle
getGridLabelStyle()
Gets the style of statistical values within gridsGeoStyle
getGridLineStyle()
Gets the style of grid lineint
getGridwidth()
Gets the length of each border of a hexagonal grid or the width of each border of a rectangle grid.boolean
getIsShowGridLabel()
Returns whether to display grid labelsColor
getMaxColor()
The color of highly dense pointsColor
getMinColor()
The color of low dense pointsjava.lang.String
getWeightField()
Returns the weighted fieldvoid
setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a grid map.void
setColorset(Colors colors)
Sets the color collectionvoid
setGradientColorType(ColorType type)
Sets a color gradient in a grid mapvoid
setGridAggregationType(LayerGridAggregationType type)
Sets the grid types of a grid aggregation map.void
setGridHeight(int height)
Sets the height of each border of a rectangle gridvoid
setGridLabelStyle(TextStyle style)
Sets the style of statistical values within gridsvoid
setGridLineStyle(GeoStyle style)
Sets the style of grid linevoid
setGridWidth(int width)
Sets the length of each border of a hexagonal grid or the width of each border of a rectangle gridvoid
setIsShowGridLabel(boolean isShow)
Sets whether to display grid labelsvoid
setMaxColor(Color color)
Sets the color of highly dense pointsvoid
setMinColor(Color color)
Sets the color of low dense pointsvoid
setWeightField(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
-
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.
-
setWeightField
public void setWeightField(java.lang.String field)
Sets the weighted field- Parameters:
field
- the weighted field
-
getWeightField
public java.lang.String getWeightField()
Returns the weighted field- Returns:
- Returns the weighted field
-
setGridLineStyle
public void setGridLineStyle(GeoStyle style)
Sets the style of grid line- Parameters:
style
- the style of grid line
-
getGridLineStyle
public GeoStyle getGridLineStyle()
Gets the style of grid line- Returns:
- the style of grid line
-
setGridLabelStyle
public void setGridLabelStyle(TextStyle style)
Sets the style of statistical values within grids- Parameters:
style
- the style of statistical values within grids
-
getGridLabelStyle
public TextStyle getGridLabelStyle()
Gets the style of statistical values within grids- Returns:
- the style of statistical values within grids
-
setIsShowGridLabel
public void setIsShowGridLabel(boolean isShow)
Sets whether to display grid labels- Parameters:
isShow
- whether to display grid labels
-
getIsShowGridLabel
public boolean getIsShowGridLabel()
Returns whether to display grid labels- Returns:
- whether to display grid labels
-
setGridAggregationType
public void setGridAggregationType(LayerGridAggregationType type)
Sets the grid types of a grid aggregation map.- Parameters:
type
- Grid type
-
getGridAggregationType
public LayerGridAggregationType getGridAggregationType()
Gets the grid types of a grid aggregation map.- Returns:
- Grid types
-
setGridWidth
public void setGridWidth(int width)
Sets the length of each border of a hexagonal grid or the width of each border of a rectangle grid- Parameters:
width
- width.
-
getGridwidth
public int getGridwidth()
Gets the length of each border of a hexagonal grid or the width of each border of a rectangle grid. Values range from 5 to 100.- Returns:
- The width
-
setGridHeight
public void setGridHeight(int height)
Sets the height of each border of a rectangle grid- Parameters:
height
- height.
-
getGridHeight
public int getGridHeight()
Gets the height of each border of a rectangle grid- Returns:
- The height
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a grid map.- Returns:
- Gets the aggregation function applied to the aggregation fields of a grid map.
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a grid map.- Parameters:
type
- Sets the aggregation function applied to the aggregation fields of a grid 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 a color gradient in a grid map- Parameters:
type
- the color gradient mode
-
getGradientColorType
public ColorType getGradientColorType()
Gets a color gradient in a grid map- Returns:
- Gets the color gradient mode in a heat map including: HSB and RGB
-
-