public final class PieChartDataSet extends DataSet implements IPieChartDataSet
| Modifier and Type | Field and Description |
|---|---|
private String |
chartTitle |
data, legendLabels, paints| Constructor and Description |
|---|
PieChartDataSet(String chartTitle,
double[] data,
String[] legendLabels,
Paint[] paints,
PieChart2DProperties pieChart2DProperties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getChartTitle()
Returns the chart title.
|
double |
getValue(int index)
Returns the value in the data set at the specified position.
|
private void |
validateData(double[] data,
String[] legendLabels,
Paint[] paints)
Perform some limited validation of the structure of the passed data.
|
getChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaint, toHTMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaintprivate String chartTitle
public PieChartDataSet(String chartTitle, double[] data, String[] legendLabels, Paint[] paints, PieChart2DProperties pieChart2DProperties) throws ChartDataException
chartTitle - if the title is NULL, no title will be drawndata - legendLabels - paints - pieChart2DProperties - ChartDataException - if fails a limited validation checkprivate void validateData(double[] data,
String[] legendLabels,
Paint[] paints)
throws ChartDataException
data - legendLabels - paints - ChartDataExceptionpublic String getChartTitle()
getChartTitle in interface IPieChartDataSetpublic double getValue(int index)
throws ArrayIndexOutOfBoundsException
getValue in interface IPieChartDataSetindex - ArrayIndexOutOfBoundsException