com.supermap.mapping

Class LayerGridAggregation



  • public class LayerGridAggregation
    extends Layer
    Grid map's layers
    • 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