Package org.onosproject.ui.chart
Class ChartModel.DataPoint
- java.lang.Object
- 
- org.onosproject.ui.chart.ChartModel.DataPoint
 
- 
- Enclosing class:
- ChartModel
 
 public class ChartModel.DataPoint extends Object A class of data point.
- 
- 
Constructor SummaryConstructors Constructor Description DataPoint()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartModel.DataPointdata(String series, Object value)Sets the data value for the given series of this data point.Objectget(String series)Returns the data value with the given series for this data point.Object[]getAll()Return the data value with the same order of series.StringgetAsString(String series)Returns the value of the data point as a string, using the formatter appropriate for the series.String[]getAsStrings()Returns the row as an array of formatted strings.intsize()Returns the size of data point.
 
- 
- 
- 
Method Detail- 
datapublic ChartModel.DataPoint data(String series, 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
 
 - 
getpublic Object get(String series) Returns the data value with the given series for this data point.- Parameters:
- series- series name
- Returns:
- data value
 
 - 
getAllpublic Object[] getAll() Return the data value with the same order of series.- Returns:
- an array of ordered data values
 
 - 
sizepublic int size() Returns the size of data point.- Returns:
- the size of data point
 
 - 
getAsStringpublic String getAsString(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
 
 - 
getAsStringspublic String[] getAsStrings() Returns the row as an array of formatted strings.- Returns:
- the string format of data points
 
 
- 
 
-