com.supermap.mapping.dyn

Class DynPieChart



  • public class DynPieChart
    extends DynamicChart
    The dynamic pie chart class.
    • Constructor Detail

      • DynPieChart

        public DynPieChart()
        Create a new pie chart object on the dynamic layer.
    • Method Detail

      • addChartData

        public void addChartData(java.lang.String tile,
                                 double pieValue,
                                 int pieColor)
        Add the chart data.
        Parameters:
        tile - Data title
        pieValue - Value,that is, the pie data.
        pieColor - Pie Color
      • addChartData

        public void addChartData(java.lang.String[] tiles,
                                 double[] pieValues,
                                 int[] pieColors)
        Add the chart data.
        Parameters:
        tiles - Data title array. The number should be the same as pie number.
        pieValues - Value, namely, the pie data. The number should be the same as title array number.
        pieColors - The pie color. When the color number is less than the value number, use the repeat colors.
      • isChartElementClickable

        public boolean isChartElementClickable()
        Gets whether the chart can be clicked.
        Returns:
        Whether the chart can be clicked.
      • setChartElementClickable

        public void setChartElementClickable(boolean isChartElementClickable)
        Sets whether the chart can be clicked.
        Parameters:
        isChartElementClickable - Whether the chart can be clicked
      • fromGeometry

        public boolean fromGeometry(Geometry geometry)
        Create a new pie chart object on the dynamic layer through Geometry.
        Specified by:
        fromGeometry in class DynamicElement
        Parameters:
        geometry - Geographic elements
        Returns:
        Whether it is successful.