com.supermap.mapping.dyn

Class DynLineChart



  • public class DynLineChart
    extends DynamicChart
    The dynamic line 'chart class.
    • Constructor Detail

      • DynLineChart

        public DynLineChart()
        Create a new line 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[] points,
                                 int pointColor,
                                 float lineWidth,
                                 DynLineChart.ValuePointStyle pointStyle)
        Add the chart data.
        Parameters:
        tile - Data title
        points - Value. The point data in the line chart.
        pointColor - The point and line color in the line chart.
        lineWidth - The line Width
        pointStyle - The point style in line chart, such as square, triangle, circle and so on.
      • addChartData

        public void addChartData(java.lang.String tile,
                                 double[] points,
                                 int pointColor,
                                 float lineWidth,
                                 DynLineChart.ValuePointStyle pointStyle,
                                 boolean display)
        Add the chart data.
        Parameters:
        tile - Data title
        points - Value. The point data in the line chart.
        pointColor - The point and line color in the line chart.
        lineWidth - The line Width
        pointStyle - The point style in line chart, such as square, triangle, circle and so on.
        display - Whether to display the value.
      • 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.
      • setLineChartType

        public void setLineChartType(DynLineChart.LineChartType lineChartType)
        Sets the line chart type.
        Parameters:
        lineChartType - The line chart type.
      • fromGeometry

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