public class PieChartDrawer extends Object
| Modifier and Type | Field and Description |
|---|---|
private double |
centerScale |
private double |
centerX |
private double |
centerY |
private double |
endAngle |
private double |
scale |
private double |
shiftAngle |
private double |
startAngle |
| Constructor and Description |
|---|
PieChartDrawer() |
| Modifier and Type | Method and Description |
|---|---|
private String |
drawPieBorders(int width,
int height,
int[] values,
String[] colors,
int pieVOffset,
int shift) |
private String |
drawPieLayer(int width,
int height,
int[] values,
String[] colors,
int pieVOffset,
int shift) |
String |
generatePieChart(int width,
int height,
int[] values,
String[] labels,
String[] colors,
String[] shadowColors,
int pieThickness,
int shift) |
private void |
initBaseDimensions(int width,
int height,
double accumulated,
double sum,
double value,
double shift) |
private final double scale
private final double centerScale
private double startAngle
private double endAngle
private double shiftAngle
private double centerX
private double centerY
private void initBaseDimensions(int width,
int height,
double accumulated,
double sum,
double value,
double shift)
private String drawPieBorders(int width, int height, int[] values, String[] colors, int pieVOffset, int shift)
private String drawPieLayer(int width, int height, int[] values, String[] colors, int pieVOffset, int shift)
public String generatePieChart(int width, int height, int[] values, String[] labels, String[] colors, String[] shadowColors, int pieThickness, int shift) throws IOException
IOExceptionCopyright © 2013-2017. All Rights Reserved.