org.achartengine.chart
Class DoughnutChart
java.lang.Object
org.achartengine.chart.AbstractChart
org.achartengine.chart.RoundChart
org.achartengine.chart.DoughnutChart
- All Implemented Interfaces:
- java.io.Serializable
public class DoughnutChart
- extends RoundChart
The doughnut chart rendering class.
- See Also:
- Serialized Form
|
Method Summary |
void |
draw(android.graphics.Canvas canvas,
int x,
int y,
int width,
int height,
android.graphics.Paint paint)
The graphical representation of the doughnut chart. |
void |
drawLegendShape(android.graphics.Canvas canvas,
SimpleSeriesRenderer renderer,
float x,
float y,
int seriesIndex,
android.graphics.Paint paint)
The graphical representation of the legend shape. |
int |
getLegendShapeWidth(int seriesIndex)
Returns the legend shape width. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoughnutChart
public DoughnutChart(MultipleCategorySeries dataset,
DefaultRenderer renderer)
- Builds a new doughnut chart instance.
- Parameters:
dataset - the series datasetrenderer - the series renderer
draw
public void draw(android.graphics.Canvas canvas,
int x,
int y,
int width,
int height,
android.graphics.Paint paint)
- The graphical representation of the doughnut chart.
- Specified by:
draw in class AbstractChart
- Parameters:
canvas - the canvas to paint tox - the top left x value of the view to draw toy - the top left y value of the view to draw towidth - the width of the view to draw toheight - the height of the view to draw topaint - the paint
getLegendShapeWidth
public int getLegendShapeWidth(int seriesIndex)
- Returns the legend shape width.
- Overrides:
getLegendShapeWidth in class RoundChart
- Parameters:
seriesIndex - the series index
- Returns:
- the legend shape width
drawLegendShape
public void drawLegendShape(android.graphics.Canvas canvas,
SimpleSeriesRenderer renderer,
float x,
float y,
int seriesIndex,
android.graphics.Paint paint)
- The graphical representation of the legend shape.
- Overrides:
drawLegendShape in class RoundChart
- Parameters:
canvas - the canvas to paint torenderer - the series rendererx - the x value of the point the shape should be drawn aty - the y value of the point the shape should be drawn atseriesIndex - the series indexpaint - the paint to be used for drawing
Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.