com.supermap.mapping.dyn

Class DynBarChart



  • public class DynBarChart
    extends DynamicChart
    The dynamic histogram chart class.
    • Constructor Detail

      • DynBarChart

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

      • setXAxisLabel

        public void setXAxisLabel(int x,
                                  java.lang.String label)
        Sets the X coordinate point label.
        Parameters:
        x - X Value
        label - The label
      • setYAxisLabel

        public void setYAxisLabel(int y,
                                  java.lang.String label)
        Sets the Y coordinate point label.
        Parameters:
        y - Y Value
        label - The label
      • addChartData

        public void addChartData(java.lang.String tile,
                                 double[] barValues,
                                 int barColor)
        Add the chart data.
        Parameters:
        tile - Data title
        barValues - Value, namely the column data.
        barColor - Bar Color
      • getXTitle

        public java.lang.String getXTitle()
        Gets the X coordinate title.
        Returns:
        The X coordinate title.
      • setXTitle

        public void setXTitle(java.lang.String xTitle)
        Sets the X coordinate title.
        Parameters:
        xTitle - The X coordinate title.
      • getYTitle

        public java.lang.String getYTitle()
        Gets the Y coordinate title.
        Returns:
        The Y coordinate title.
      • setYTitle

        public void setYTitle(java.lang.String yTitle)
        Sets the Y coordinate title.
        Parameters:
        yTitle - The Y coordinate title.
      • getBarSpacing

        public float getBarSpacing()
        Gets the columnar interval.
        Returns:
        Column interval, the unit is in pixels.
      • setBarSpacing

        public void setBarSpacing(float barSpacing)
        Sets the columnar interval.
        Parameters:
        barSpacing - Column interval, the unit is in pixels.
      • fromGeometry

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