Class ChartModel.DataPoint

  • Enclosing class:
    ChartModel

    public class ChartModel.DataPoint
    extends java.lang.Object
    A class of data point.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataPoint()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChartModel.DataPoint data​(java.lang.String series, java.lang.Object value)
      Sets the data value for the given series of this data point.
      java.lang.Object get​(java.lang.String series)
      Returns the data value with the given series for this data point.
      java.lang.Object[] getAll()
      Return the data value with the same order of series.
      java.lang.String getAsString​(java.lang.String series)
      Returns the value of the data point as a string, using the formatter appropriate for the series.
      java.lang.String[] getAsStrings()
      Returns the row as an array of formatted strings.
      int size()
      Returns the size of data point.
      • Methods inherited from class java.lang.Object

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

      • DataPoint

        public DataPoint()
    • Method Detail

      • data

        public ChartModel.DataPoint data​(java.lang.String series,
                                         java.lang.Object value)
        Sets the data value for the given series of this data point.
        Parameters:
        series - series name
        value - value to set
        Returns:
        self, for chaining
      • get

        public java.lang.Object get​(java.lang.String series)
        Returns the data value with the given series for this data point.
        Parameters:
        series - series name
        Returns:
        data value
      • getAll

        public java.lang.Object[] getAll()
        Return the data value with the same order of series.
        Returns:
        an array of ordered data values
      • size

        public int size()
        Returns the size of data point.
        Returns:
        the size of data point
      • getAsString

        public java.lang.String getAsString​(java.lang.String series)
        Returns the value of the data point as a string, using the formatter appropriate for the series.
        Parameters:
        series - series
        Returns:
        formatted data point value
      • getAsStrings

        public java.lang.String[] getAsStrings()
        Returns the row as an array of formatted strings.
        Returns:
        the string format of data points