public final class PieChartDataSet extends DataSet implements IPieChartDataSet
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
chartTitle |
data, legendLabels, paints| Constructor and Description |
|---|
PieChartDataSet(java.lang.String chartTitle,
double[] data,
java.lang.String[] legendLabels,
java.awt.Paint[] paints,
PieChart2DProperties pieChart2DProperties)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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,
java.lang.String[] legendLabels,
java.awt.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, getPaintpublic PieChartDataSet(java.lang.String chartTitle,
double[] data,
java.lang.String[] legendLabels,
java.awt.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,
java.lang.String[] legendLabels,
java.awt.Paint[] paints)
throws ChartDataException
data - legendLabels - paints - ChartDataExceptionpublic java.lang.String getChartTitle()
getChartTitle in interface IPieChartDataSetpublic double getValue(int index)
throws java.lang.ArrayIndexOutOfBoundsException
getValue in interface IPieChartDataSetindex - java.lang.ArrayIndexOutOfBoundsException