Class ChartSeries

  • All Implemented Interfaces:
    java.io.Serializable

    public class ChartSeries
    extends java.lang.Object
    implements java.io.Serializable
    A chart series has a name and consists of a list of values.
    Since:
    5.7
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ChartSeries​(I18NName name)
      Constructor
      ChartSeries​(I18NName name, java.util.List<java.lang.Number> values)
      Constructor with name and values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addValue​(java.lang.Number value)
      Append a value
      I18NName getName()
      Get series name
      java.util.List<java.lang.Number> getValues()
      Get the series values
      void setName​(I18NName name)
      Set series name
      void setValues​(java.util.List<java.lang.Number> values)
      Set the series values
      • Methods inherited from class java.lang.Object

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

      • ChartSeries

        public ChartSeries​(I18NName name)
        Constructor
        Parameters:
        name - series name
      • ChartSeries

        public ChartSeries​(I18NName name,
                           java.util.List<java.lang.Number> values)
        Constructor with name and values
        Parameters:
        name - series name
        values - a list of values
    • Method Detail

      • addValue

        public void addValue​(java.lang.Number value)
        Append a value
        Parameters:
        value - value
      • getName

        public I18NName getName()
        Get series name
        Returns:
        name
      • setName

        public void setName​(I18NName name)
        Set series name
        Parameters:
        name - the series name to set
      • getValues

        public java.util.List<java.lang.Number> getValues()
        Get the series values
        Returns:
        a list of values
      • setValues

        public void setValues​(java.util.List<java.lang.Number> values)
        Set the series values
        Parameters:
        values - a list of values