|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rchart.DataSerie
com.java4less.rchart.PieDataSerie
public class PieDataSerie
The PieDataSerie is actually not a serie of value but a set of values to be plotted as a pie chart. Example: // data double[] d1={64,95,11,70}; // style of the pie FillStyle[] s1={new FillStyle(GraphicsProvider.getColor(ChartColor.CYAN)),new FillStyle(GraphicsProvider.getColor(ChartColor.BLUE)),new FillStyle(GraphicsProvider.getColor(ChartColor.GREEN)),new FillStyle(GraphicsProvider.getColor(ChartColor.YELLOW))}; PieDataSerie data1= new PieDataSerie(d1,s1);
Field Summary | |
---|---|
boolean |
drawPercentages
if true the percenteges will be displayed instead of the actual values. |
double |
textDistanceToCenter
distance of the text to the center of the pie. |
ChartColor |
valueColor
color of the font used to display the values/percentages. |
ChartFont |
valueFont
font used to display the values/percentages. |
Fields inherited from class com.java4less.rchart.DataSerie |
---|
dataLabels, hotAreas, htmlLinks, labelTemplate, name, nullValue, secondaryXAxis, secondaryYAxis, secondYAxis, tips, valueFormat |
Constructor Summary | |
---|---|
PieDataSerie()
|
|
PieDataSerie(double[] y,
FillStyle[] s)
creates a PieDataSerie to display a list of values on a pie chart. |
|
PieDataSerie(double[] y,
FillStyle[] s,
boolean[] keepTogether,
java.lang.String[] labels)
creates a PieDataSerie to display a list of values on a pie chart. |
Method Summary | |
---|---|
void |
addPieData(double y,
FillStyle s)
Adds a new value to the set. |
void |
addPieData(double y,
FillStyle s,
boolean keepTogether,
java.lang.String label)
Adds a new value to the set. |
Methods inherited from class com.java4less.rchart.DataSerie |
---|
addData, getElementX, getElementY, getSize, replaceXValueAt, replaceXYValueAt, replaceYValueAt, setDatax |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ChartColor valueColor
public ChartFont valueFont
public double textDistanceToCenter
public boolean drawPercentages
Constructor Detail |
---|
public PieDataSerie()
public PieDataSerie(double[] y, FillStyle[] s, boolean[] keepTogether, java.lang.String[] labels)
public PieDataSerie(double[] y, FillStyle[] s)
Method Detail |
---|
public void addPieData(double y, FillStyle s)
public void addPieData(double y, FillStyle s, boolean keepTogether, java.lang.String label)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |