GUI.Statistics
Class PieChartImplementation

java.lang.Object
  |
  +--GUI.Statistics.PieChartImplementation

public class PieChartImplementation
extends java.lang.Object
implements StatisticDiagramImplementation


Constructor Summary
PieChartImplementation()
           
 
Method Summary
 java.awt.Image createImage(StatisticDiagram diagram)
          Paints the Pie Chart
private  int[] getLowerSlices(double[] startPercent, double[] endPercent)
          Build list of slices that are fully or partially in the lower half of the Pie Chart.
private  int[] getUpperSlices(double[] startPercent, double[] endPercent)
          Build list of slices that are fully or partially in the upper half of the Pie Chart.
private  void printNoDataAvailable(java.awt.Graphics g, int xDim, int yDim, int xCenter, int yCenter)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PieChartImplementation

public PieChartImplementation()
Method Detail

createImage

public java.awt.Image createImage(StatisticDiagram diagram)
Paints the Pie Chart
Specified by:
createImage in interface StatisticDiagramImplementation

getUpperSlices

private int[] getUpperSlices(double[] startPercent,
                             double[] endPercent)
Build list of slices that are fully or partially in the upper half of the Pie Chart. The slices are enumerated viewing from left to right on the graphic image

getLowerSlices

private int[] getLowerSlices(double[] startPercent,
                             double[] endPercent)
Build list of slices that are fully or partially in the lower half of the Pie Chart. The slices are enumerated viewing from left to right on the graphic image

printNoDataAvailable

private void printNoDataAvailable(java.awt.Graphics g,
                                  int xDim,
                                  int yDim,
                                  int xCenter,
                                  int yCenter)