com.supermap.mapping.imChart

Class BarChartData



  • public class BarChartData
    extends ChartData
    Bar chart data class, build chart data for displaying bar chart Each value corresponds to a label and color and is scaled to a rectangle
    • Constructor Summary

      Constructors 
      Constructor and Description
      BarChartData()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addData(java.lang.String label, int color, double value)
      Added a data, include its color and label.
      void clear()
      clean all data
      boolean remove(int index)
      Removed a data, include its value, color and label.
      void setColor(int color)
      Sets chart sub-object color
      void setLabel(java.lang.String label)
      Sets chart sub-object label
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BarChartData

        public BarChartData()
        Constructor.
    • Method Detail

      • addData

        public void addData(java.lang.String label,
                            int color,
                            double value)
        Added a data, include its color and label.
        Parameters:
        label - label.
        color - display color.
        value - value.
      • remove

        public boolean remove(int index)
        Removed a data, include its value, color and label.
        Parameters:
        index - data index.
        Returns:
        True, if successful; Otherwise false.
      • clear

        public void clear()
        clean all data