All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----MSBChart.DataSerie
           |
           +----MSBChart.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(java.awt.Color.cyan),new FillStyle(java.awt.Color.blue),new FillStyle(java.awt.Color.green),new FillStyle(java.awt.Color.yellow)};
PieDataSerie data1= new PieDataSerie(d1,s1);

 
 drawPercentages
	drawPercentages
   textDistanceToCenter
	textDistanceToCenter
   valueColor
	valueColor
   valueFont
	valueFont
   
 PieDataSerie(double[], FillStyle[])
	PieDataSerie(double[], FillStyle[])
   
 addPieData(double, FillStyle)
	addPieData(double, FillStyle)
   
 valueColor
valueColor
public Color valueColor
color of the font used to display the values/percentages.
 valueFont
valueFont
public Font valueFont
font used to display the values/percentages.
 textDistanceToCenter
textDistanceToCenter
public double textDistanceToCenter
distance of the text to the center of the pie. The default value is 1 (outside the pie). A value of 0.5 means half of the radius of the pie.
 drawPercentages
drawPercentages
public boolean drawPercentages
if true the percenteges will be displayed instead of the actual values.
 
 PieDataSerie
PieDataSerie
 public PieDataSerie(double y[],
                     FillStyle s[])
creates a PieDataSerie to display a list of values on a pie chart. Each element must have also a styled.
 
 addPieData
addPieData
 public void addPieData(double y,
                        FillStyle s)
Adds a new value to the set.
All Packages Class Hierarchy This Package Previous Next Index