org.jCharts.chartData
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, toHTML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChartTypeProperties, getLegendLabel, getNumberOfDataItems, getNumberOfLegendLabels, getPaint
private 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
- ChartDataException
public String getChartTitle()
getChartTitle
in interface IPieChartDataSet
public double getValue(int index) throws ArrayIndexOutOfBoundsException
getValue
in interface IPieChartDataSet
index
- ArrayIndexOutOfBoundsException