public class ArrrayListDataPoints extends Object implements Comparable<ArrrayListDataPoints>, Serializable
Constructor and Description |
---|
ArrrayListDataPoints(ArrayList<Double> data,
JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType valueDisplayType)
Create a new ArrrayListDataPoints.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ArrrayListDataPoints o)
Compares based on the sum of the values in the data arrays.
|
ArrayList<Double> |
getData()
Returns the array list.
|
JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType |
getDataSortingType()
Returns the value sort (and display) type.
|
double |
getSum()
Return the sum of the values in the list.
|
double |
getSumExceptLast()
Return the sum of the values in the list.
|
void |
setData(ArrayList<Double> data)
Set the array list.
|
void |
setDataSortingType(JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType valueDisplayType)
Set the value sort (and display) type.
|
String |
toString()
Returns all the values as a comma separated string.
|
public ArrrayListDataPoints(ArrayList<Double> data, JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType valueDisplayType)
data
- the datavalueDisplayType
- the way to sort (and display) the datapublic JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType getDataSortingType()
public void setDataSortingType(JSparklinesArrayListBarChartTableCellRenderer.ValueDisplayType valueDisplayType)
valueDisplayType
- the way to sort (and display) the datapublic void setData(ArrayList<Double> data)
data
- the array listpublic double getSum()
public double getSumExceptLast()
public String toString()
public int compareTo(ArrrayListDataPoints o)
compareTo
in interface Comparable<ArrrayListDataPoints>
Copyright © 2016. All rights reserved.